From f09880150c6a309ce15931a8e2d52ebf054a115a Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 13 Nov 2013 00:47:58 +0100 Subject: fix remaster_iso for krebs auto install --- ship/src/remaster_iso | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/ship/src/remaster_iso b/ship/src/remaster_iso index a10034c9..c11f1f57 100755 --- a/ship/src/remaster_iso +++ b/ship/src/remaster_iso @@ -9,6 +9,7 @@ isodir=$bdir/iso isomnt=$bdir/isomount rootdir=$bdir/root outdir=$bdir/out +auto_url=euer.krebsco.de/autoinstall info "bdir is at $bdir" [ ! -e "$isofile" ] && die "$isofile does not exist,bailing out" esudo "$@" @@ -45,20 +46,39 @@ for arch in x86_64 i686;do unsquashfs -f -d "$outdir/$arch" "$isodir/arch/$arch/root-image.fs.sfs" mount "$outdir/$arch/root-image.fs" "$rootdir/$arch" - defer "info 'unmounting $rootdir/$arch';umount $rootdir/$arch" + defer "info 'unmounting $rootdir/$arch';umount $rootdir/$arch||info 'not mounted'" info "Starting of the rootdir verkrepelung" # do the magic here arch-chroot $rootdir/$arch <> /root/.zshrc< /krebs/autoinstall </dev/null | sh +EOL +chmod 755 /krebs/autoinstall EOF + info "deleting old squashfs" + rm "$isodir/arch/$arch/root-image.fs.sfs" info "creating squashfs at $isodir/arch/$arch/root-image.fs.sfs" - mksquashfs "$outdir/$arch/root-image.fs" "$isodir/arch/$arch/root-image.fs.sfs" -noappend + umount "$rootdir/$arch" + mksquashfs "$outdir/$arch/root-image.fs" "$isodir/arch/$arch/root-image.fs.sfs" done info "creating Iso Image" genisoimage -l -r -J -V "ARCH_$(date +%Y%m)" \ -b isolinux/isolinux.bin -no-emul-boot \ -boot-load-size 4 -boot-info-table -c isolinux/boot.cat \ - -o "$outdir/$outfile" "$isodir" | to_dots + -o "$outdir/$outfile" "$isodir" -- cgit v1.2.3