X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-debootstrap;h=1f4fa0052506d9b34e76973665186235cf8744d7;hb=0d4c08983c4a940464401fb48ca43afdab7e54d1;hp=52d428fa0eb008d0b07cc15cd49beb6ee619e461;hpb=e11e7b238ea8bc70269d7dd08120681dad702c96;p=grml-debootstrap.git diff --git a/grml-debootstrap b/grml-debootstrap index 52d428f..1f4fa00 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -41,7 +41,7 @@ fi # variables {{{ PN="$(basename "$0")" if [[ -d "$(dirname "$(command -v "$0")")"/.git ]]; then - VERSION="$(git describe | sed 's|^v||')" + VERSION="$(git --git-dir $(dirname "$(command -v "$0")")/.git describe | sed 's|^v||')" else VERSION="$(dpkg-query --show --showformat='${Version}' "$PN")" fi @@ -1546,8 +1546,11 @@ if [[ -z "${GRUB}" ]] || ! dd if="${GRUB}" bs=512 count=1 2>/dev/null | cat -v | f2fs) chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos f2fs ;; - # NOTE - we might need to distinguish between further filesystems - *) + xfs) + chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos xfs + ;; + # NOTE - we might need to distinguish between further filesystems + *) chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos ext2 ;; esac