fi
fi
+# mounting
+header "Mounting proc & sys filesystem in deployed image"
+if [! -d /cloner/mnt/proc ]
+then
+ mkdir /cloner/mnt/proc
+fi
+
+msg -n "Mounting /cloner/mnt/proc"
+mount -t proc none /cloner/mnt/proc
+if [ "$?" = "0" ]
+then
+ ok_msg
+else
+ fail_msg
+fi
+
+if [! -d /cloner/mnt/sys ]
+then
+ mkdir /cloner/mnt/sys
+fi
+msg -n "Mounting /cloner/mnt/proc"
+mount -t sysfs none /cloner/mnt/sys
+if [ "$?" = "0" ]
+then
+ ok_msg
+else
+ fail_msg
+fi
+
+
header "Installing bootloader"
while read line
do
fi
# if grub2 we generate a grub2 config file too
- if [ "${GRUB2}" = "9" ]
+ if [ "${GRUB2}" = "1" ]
then
if [ -x /cloner/mnt/sbin/grub2-mkconfig ]
then
header "Unmounting filesystems"
server_log "Unmounting filesystems" "${_node}"
+
+umount /cloner/mnt/proc
+umount /cloner/mnt/sys
+
while read line
do
FS_DEVICE=`echo $line | awk '{print $1}'`