runscript updates for filesystem
authorBrad House <brad_mssw@gentoo.org>
Tue, 13 Jan 2004 03:55:49 +0000 (03:55 +0000)
committerBrad House <brad_mssw@gentoo.org>
Tue, 13 Jan 2004 03:55:49 +0000 (03:55 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@150 d1e1f19c-881f-0410-ab34-b69fee027534

examples/livecd/runscript/x86-isolinux-loop-example.sh

index 9c285fc86653153b24f621e11dfcffc24b4f55c5..2fd8368bbf0353bd9088fc9d48db4556a9bb2c8e 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/x86-isolinux-loop-example.sh,v 1.5 2004/01/11 23:42:56 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/x86-isolinux-loop-example.sh,v 1.6 2004/01/13 03:55:49 brad_mssw Exp $
 
 die() {
        echo "$1"
@@ -139,6 +139,13 @@ cdroot_setup)
        sync; sync; sleep 3 #try to work around 2.6.0+ loopback bug
        echo "cp -a $clst_chroot_path/* $clst_cdroot_path/loopmount"
        cp -a $clst_chroot_path/* $clst_cdroot_path/loopmount 
+
+       # Filesystem stuff
+       echo "Setting up filesystem files"
+       echo "livecd" > $clst_cdroot_path/loopmount/etc/hostname
+       sed -i -e 's:^/dev/[RBS]*::' $clst_cdroot_path/loopmount/etc/fstab
+       sed -i -e '/dev-state/ s/^/#/' $clst_cdroot_path/loopmount/etc/devfsd.conf
+
        [ $? -ne 0 ] && { umount $clst_cdroot_path/loopmount; die "Couldn't copy files to loopback ext2 filesystem"; }
        umount $clst_cdroot_path/loopmount || die "Couldn't unmount loopback ext2 filesystem"
        rm -rf $clst_cdroot_path/loopmount