Subject: Re: mklivecd experience
To: Mike M. Volokhov <firstname.lastname@example.org>
From: Juan RP <email@example.com>
Date: 03/30/2005 16:25:29
On Wed, 30 Mar 2005 16:12:44 +0300
"Mike M. Volokhov" <firstname.lastname@example.org> wrote:
> Today I've tried pkgsrc/sysutils/mklivecd package. Well, the idea is
> pretty cool (thanks, xtraeme!). But after running "mklivecd chroot" I
> found that my kernel is NetBSD-current when unpacked sets was from 2.0.
> Thus, I just pressed CTRL+D and ran "mklivecd clean". This was removed
> just all contents of my pkgsrc build farm, so as this stuff still
> mounted at livecd/work directory. :-O
> Unfortunately, I'm unable to reproduce this (possible I have cd'ed to
> pkgsrc/distfiles inside work directory from another shell to investigate
> its structure).
> Thus, the patch below should prevent such accidents in future (it also
> fix the path to GRUB files). Unfortunatelly, I don't look on mklivecd
> deeper so as I must restore my pkgsrc builds first.
> Index: mklivecd.sh
> RCS file: /cvsroot/pkgsrc/sysutils/mklivecd/files/mklivecd.sh,v
> retrieving revision 1.19
> diff -u -r1.19 mklivecd.sh
> --- mklivecd.sh 16 Mar 2005 16:37:38 -0000 1.19
> +++ mklivecd.sh 30 Mar 2005 13:10:31 -0000
> @@ -257,7 +257,7 @@
> for f in $GRUB_FILES
> if [ ! -f $ISODIR/$BOOTDIR/$f ]; then
> - cp @PREFIX@/share/grub/@MACHINE_ARCH@-/$f \
> + cp @PREFIX@/lib/grub/@MACHINE_ARCH@-/$f \
> [ "$verbose_mode" = "on" ] && \
> showmsg "Copying $f into $ISODIR/$BOOTDIR."
> @@ -589,6 +589,10 @@
> + if [ -f $pkgsrc_mntstat -o -f $pkgsrcdist_mntstat ]; then
> + showmsg "The pkgsrc directories still in use! Exiting."
> + bye 1
> + fi
> showmsg "Cleaning WORKDIR: $WORKDIR"
> rm -rf $WORKDIR
> for F in bin dev etc lib libexec mnt rescue \
Ahh right, hmm grub changed the installation directory for the stage
files (I didn't know!).
I have applied your patch, thanks.