X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-live;h=2795e172bf316cc26f8ad97f74fbb0c4148a77c3;hb=ce5ae669f215280a60bc3fd20cd1b952cab7847f;hp=e2719b189d4500a7f67f07d10607da4c308f9394;hpb=b18889f0d17b02be6477e18bdc6657f374d60631;p=grml-live.git diff --git a/grml-live b/grml-live index e2719b1..2795e17 100755 --- a/grml-live +++ b/grml-live @@ -152,6 +152,7 @@ umount_all() { # make sure we don't leave any mounts - FAI doesn't remove them always umount $CHROOT_OUTPUT/proc/sys/fs/binfmt_misc 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/proc 2>/dev/null || /bin/true + umount $CHROOT_OUTPUT/run 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/sys 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/dev/pts 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/dev 2>/dev/null || /bin/true @@ -1388,7 +1389,10 @@ create_netbootpackage() { fi if tar -C "$OUTPUTDIR" -jcf "${OUTPUT_FILE}" "grml_netboot_package_${GRML_NAME}_${VERSION}" ; then - sha1sum "${OUTPUT_FILE}" > "${OUTPUT_FILE}.sha1" + ( + cd $(dirname "${OUTPUT_FILE}") + sha1sum $(basename "${OUTPUT_FILE}") > "${OUTPUT_FILE}.sha1" + ) einfo "Generated netboot package ${OUTPUT_FILE}" ; eend 0 rm -rf "${OUTPUTDIR}" else