log.write( "Unmounting disks.\n" )
utils.sysexec( "umount %s/vservers" % SYSIMG_PATH, log )
utils.sysexec( "umount %s/proc" % SYSIMG_PATH, log )
+ utils.sysexec( "umount %s/dev" % SYSIMG_PATH, log )
+ utils.sysexec( "umount %s/sys" % SYSIMG_PATH, log )
utils.sysexec( "umount %s" % SYSIMG_PATH, log )
utils.sysexec( "vgchange -an", log )
# kargs, which is ramdisk_size=8192
pass
- utils.sysexec_noerr( 'hwclock --systohc --utc ' )
+ utils.sysexec_noerr( 'hwclock --systohc --utc ', log )
utils.breakpoint ("Before kexec");
try:
- utils.sysexec( 'kexec --force --initrd=/tmp/initrd ' \
- '--append="%s" /tmp/kernel' % kargs)
+ utils.sysexec( 'kexec --force --initrd=/tmp/initrd --append="%s" /tmp/kernel' % kargs, log)
except BootManagerException, e:
# if kexec fails, we've shut the machine down to a point where nothing
# can run usefully anymore (network down, all modules unloaded, file