On 3/8/07, Ole Holm Nielsen <[EMAIL PROTECTED]> wrote: > The Golden Client runs CentOS 4.4 (RHEL4 clone) and has this line in > /etc/fstab defining the swap partition: > LABEL=SWAP-hda2 swap swap defaults 0 0 > However, when the si_getimage is done a .master script has been created > which doesn't format a swap partition in /dev/hda2, so when the cloned > client comes up it has no swap space :-(
Yes still an issue in 3.7.4, ran into this several times. > > FYI, the generated .master script contains these sections which ought > to define the swap space: > > logmsg "Creating partition ${DISK0}2." > START_MB=$END_OF_LAST_PRIMARY > END_MB=$(( $DISK_SIZE - 0 )) > logmsg "parted -s -- $DISK0 mkpart primary linux-swap $START_MB $END_MB || > shellout" > parted -s -- $DISK0 mkpart primary linux-swap $START_MB $END_MB || shellout > END_OF_LAST_PRIMARY=$END_MB > > .... > > ### BEGIN swap and filesystem creation commands ### > logmsg "mke2fs -q -j ${DISK0}1 || shellout" > mke2fs -q -j ${DISK0}1 || shellout > logmsg "tune2fs -L / ${DISK0}1" > tune2fs -L / ${DISK0}1 > logmsg "mkdir -p /a/ || shellout" > mkdir -p /a/ || shellout > logmsg "mount ${DISK0}1 /a/ -t ext3 -o defaults || shellout" > mount ${DISK0}1 /a/ -t ext3 -o defaults || shellout > > ### END swap and filesystem creation commands ### You are in fact not creating the swap nor are you turning it on. You appear to have manually modified the initial disk layout portion parted -s -- $DISK0 mkpart primary linux-swap $START_MB $END_MB || shellout" by adding the linux-swap statement as it's left out.. Ran into this against any image that was initially created with kickstart actually.. You need to add a statement before ###END swap blah blah blah, that looks like.the following. I've actually just started using the Dev, since I was tired of my systemimager failing towards the end and not rebooting, since it thought there was an error "No SWAP-hda2 could be found blah blah.. logmsg "mkswap -v1 -L SWAP-hda2 ${DISK0}2 || shellout" mkswap -v1 -L SWAP-hda2 ${DISK0}2 || shellout logmsg "swapon ${DISK0}2 || shellout" swapon ${DISK0}2 || shellout Sorry folks took some time away from systemimager, need to get back into it, test some more things for Andrea and get me to 100%, still no there with various hda --> sda images. Tory ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ sisuite-users mailing list sisuite-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sisuite-users