#!/bin/bash
#================
# FILE          : preinit
#----------------
# PROJECT       : OpenSuSE KIWI Image System
# COPYRIGHT     : (c) 2006 SUSE LINUX Products GmbH. All rights reserved
#               :
# AUTHOR        : Marcus Schaefer <ms@suse.de>
#               :
# BELONGS TO    : Operating System images
#               :
# DESCRIPTION   : This file is called after the image root
#               : has changed by the linuxrc script
#               :
# STATUS        : BETA
#----------------
#======================================
# Functions...
#--------------------------------------
. /include

#======================================
# 1) start error log
#--------------------------------------
Echo "Calling pre-init stage in system image"
errorLogStart

#======================================
# 2) update mount table
#--------------------------------------
updateMTAB

#======================================
# 3) setup console
#--------------------------------------
setupConsole

#======================================
# 4) create framebuffer devices
#--------------------------------------
createFramebufferDevices

#======================================
# 5) create origin snapshot if possible
#--------------------------------------
createOriginSnapshot

#======================================
# 6) clean mount
#--------------------------------------
umountSystemFilesystems
