projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8e73764
)
Remove kernel and initrd only when building RELEASE
author
Michael Prokop
<devnull@localhost>
Mon, 29 Sep 2008 11:58:40 +0000
(13:58 +0200)
committer
Michael Prokop
<devnull@localhost>
Mon, 29 Sep 2008 11:58:40 +0000
(13:58 +0200)
grml-live
patch
|
blob
|
history
diff --git
a/grml-live
b/grml-live
index
2694a25
..
07c1bd8
100755
(executable)
--- a/
grml-live
+++ b/
grml-live
@@
-431,12
+431,15
@@
else
# make sure new /etc/grml_version reaches the initramfs:
chroot $CHROOT_OUTPUT update-initramfs -u -t
eend $?
# make sure new /etc/grml_version reaches the initramfs:
chroot $CHROOT_OUTPUT update-initramfs -u -t
eend $?
- # get rid of unnecessary files when building grml-small:
- if echo "$CLASSES" | grep -q GRML_SMALL ; then
+ # get rid of unnecessary files when building grml-small for final release:
+ if echo "$CLASSES" | grep -q GRML_SMALL && \
+ echo "$CLASSES" | grep -q RELEASE ; then
einfo "Removing initrd and vmlinuz files in $CHROOT_OUTPUT/boot"
rm -f "$CHROOT_OUTPUT"/boot/initrd.img-*
rm -f "$CHROOT_OUTPUT"/boot/vmlinuz-*
eend $?
einfo "Removing initrd and vmlinuz files in $CHROOT_OUTPUT/boot"
rm -f "$CHROOT_OUTPUT"/boot/initrd.img-*
rm -f "$CHROOT_OUTPUT"/boot/vmlinuz-*
eend $?
+ ewarn "Notice: you have to rebuild grml-small from scratch on next run."
+ eend 0
fi
fi
fi
fi