projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
092274d
)
Support GRUB as present in Debian/jessie in VM builds
author
Michael Prokop
<mika@grml.org>
Mon, 13 Oct 2014 16:13:52 +0000
(18:13 +0200)
committer
Michael Prokop
<mika@grml.org>
Mon, 13 Oct 2014 19:06:11 +0000
(21:06 +0200)
Fixes #30 @ github
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
5313e25
..
f589166
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1078,7
+1078,14
@@
finalize_vm() {
bailout 1
fi
bailout 1
fi
- cp "${MNTPOINT}"/usr/lib/grub/i386-pc/* "${MNTPOINT}/boot/grub/"
+ case "$RELEASE" in
+ lenny|squeeze|wheezy)
+ cp "${MNTPOINT}"/usr/lib/grub/i386-pc/* "${MNTPOINT}/boot/grub/"
+ ;;
+ *)
+ cp -a "${MNTPOINT}"/usr/lib/grub/i386-pc "${MNTPOINT}/boot/grub/"
+ ;;
+ esac
chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos ext2
dd if="${MNTPOINT}/tmp/core.img" of="${ORIG_TARGET}" conv=notrunc seek=4
rm -f "${MNTPOINT}/tmp/core.img"
chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos ext2
dd if="${MNTPOINT}/tmp/core.img" of="${ORIG_TARGET}" conv=notrunc seek=4
rm -f "${MNTPOINT}/tmp/core.img"