diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2008-03-27 21:08:26 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2008-03-27 21:08:26 +0000 |
commit | 935abc224e2edaf10217a749ac5d58a806bda441 (patch) | |
tree | d8d890ab93d08bc2abdb7f22000ed57562ce27ed /sysutils | |
parent | ced5f38dcf6cf1c71febb006027ebd4cb9a81c21 (diff) | |
download | pkgsrc-935abc224e2edaf10217a749ac5d58a806bda441.tar.gz |
Remove the hidden stage files only if the iso image was created
successfully.
Diffstat (limited to 'sysutils')
-rwxr-xr-x | sysutils/mklivecd/files/mklivecd.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sysutils/mklivecd/files/mklivecd.sh b/sysutils/mklivecd/files/mklivecd.sh index e43eab3791c..6bb2fe8878b 100755 --- a/sysutils/mklivecd/files/mklivecd.sh +++ b/sysutils/mklivecd/files/mklivecd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: mklivecd.sh,v 1.47 2008/03/27 20:54:09 xtraeme Exp $ +# $NetBSD: mklivecd.sh,v 1.48 2008/03/27 21:08:26 xtraeme Exp $ # # Copyright (c) 2004-2008 Juan Romero Pardines. # All rights reserved. @@ -689,7 +689,7 @@ do_cdlive() cat > $ISODIR/etc/rc.d/root <<_EOF_ #!/bin/sh # -# \$NetBSD: mklivecd.sh,v 1.47 2008/03/27 20:54:09 xtraeme Exp $ +# \$NetBSD: mklivecd.sh,v 1.48 2008/03/27 21:08:26 xtraeme Exp $ # # PROVIDE: root @@ -1089,6 +1089,10 @@ _EOF_ > /dev/null 2>&1 showmsgstring fi + + rm -f $kernel_stage_done + rm -f $base_stage_done + rm -f $chroot_stage_done } if [ -f $BASEDIR/$IMAGE_NAME.iso ]; then echo "* Found $IMAGE_NAME.iso." |