X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=30682a280b14e5e2fd0ebb5c5496a0ef5e11ece6;hp=653f16cf91c19e06ae31eb9fc3de7632d74b8f02;hb=530fd2ad7c930c3cca810a2d351de30971cd5fc4;hpb=4fae346b2e816b3d7f97ea9e42455f104db5adb6 diff --git a/grml-debootstrap b/grml-debootstrap index 653f16c..30682a2 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -707,7 +707,11 @@ mkfs() { # make sure /dev/disk/by-uuid/... is up2date, otherwise grub # will fail to detect the uuid in the chroot - blockdev --rereadpt "${TARGET%%[0-9]*}" + if echo "$TARGET" | grep -q "/dev/md" ; then + blockdev --rereadpt "${TARGET}" + else + blockdev --rereadpt "${TARGET%%[0-9]*}" + fi # give the system 2 seconds, otherwise we might run into # race conditions :-/ sleep 2