projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fae346
)
Make sure to reread the correct partition table if using SW-RAID.
author
Michael Prokop
<mika@grml.org>
Tue, 18 May 2010 11:46:32 +0000
(13:46 +0200)
committer
Michael Prokop
<mika@grml.org>
Tue, 18 May 2010 11:46:32 +0000
(13:46 +0200)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
653f16c
..
30682a2
100755
(executable)
--- 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