X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallWriteConfig.py;h=65b4a15c415a5cd64f8126dfff4b937f413808a4;hb=cc502a8c1f96ee36cbd891e56eb2573aa2e3cada;hp=40d3cbedc6f1681eb15ee6db61e5302a6b42ee3a;hpb=baf838cd5db93ecadd012d0e065ffbc8f3bcf113;p=bootmanager.git diff --git a/source/steps/InstallWriteConfig.py b/source/steps/InstallWriteConfig.py index 40d3cbe..65b4a15 100644 --- a/source/steps/InstallWriteConfig.py +++ b/source/steps/InstallWriteConfig.py @@ -1,5 +1,5 @@ #!/usr/bin/python - +# # Copyright (c) 2003 Intel Corporation # All rights reserved. # @@ -11,7 +11,6 @@ import os, string from Exceptions import * import utils -import systeminfo import BootAPI import ModelOptions @@ -72,9 +71,6 @@ def Run( vars, log ): utils.sysexec_chroot( SYSIMG_PATH, "ln -sf /usr/share/zoneinfo/UTC /etc/localtime", log ) - log.write( "Enabling ntp at boot\n" ) - utils.sysexec_chroot( SYSIMG_PATH, "chkconfig ntpd on", log ) - log.write( "Creating system directory %s\n" % PLCONF_DIR ) if not utils.makedirs( "%s/%s" % (SYSIMG_PATH,PLCONF_DIR) ): log.write( "Unable to create directory\n" ) @@ -84,10 +80,15 @@ def Run( vars, log ): fstab= file( "%s/etc/fstab" % SYSIMG_PATH, "w" ) fstab.write( "%s none swap sw 0 0\n" % \ PARTITIONS["mapper-swap"] ) - fstab.write( "%s / ext2 defaults 1 1\n" % \ + fstab.write( "%s / ext3 defaults 1 1\n" % \ PARTITIONS["mapper-root"] ) - fstab.write( "%s /vservers ext2 tagxid,defaults 1 2\n" % \ - PARTITIONS["mapper-vservers"] ) + if (vars['ONE_PARTITION']!='1'): + if vars['virt'] == 'vs': + fstab.write( "%s /vservers ext3 tagxid,defaults 1 2\n" % \ + PARTITIONS["mapper-vservers"] ) + else: + fstab.write( "%s /vservers btrfs defaults 1 2\n" % \ + PARTITIONS["mapper-vservers"] ) fstab.write( "none /proc proc defaults 0 0\n" ) fstab.write( "none /dev/shm tmpfs defaults 0 0\n" ) fstab.write( "none /dev/pts devpts defaults 0 0\n" )