From c9418d334f2cbeacba2085e538c16ce1f38c42f1 Mon Sep 17 00:00:00 2001 From: Brad House Date: Tue, 13 Jan 2004 03:55:49 +0000 Subject: [PATCH] runscript updates for filesystem 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/livecd/runscript/x86-isolinux-loop-example.sh b/examples/livecd/runscript/x86-isolinux-loop-example.sh index 9c285fc8..2fd8368b 100644 --- a/examples/livecd/runscript/x86-isolinux-loop-example.sh +++ b/examples/livecd/runscript/x86-isolinux-loop-example.sh @@ -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 -- 2.26.2