tar2fs: fix check for lilo binary
The check introduced by commit d7689f30
while rewriting tar2vm
(which presumed x86) was subtly broken: it checked for *host*
binary before preparing *chroot* configuration file for it.
Wonder how many build servers run lilo over here that this BUG
has managed to evade attention for almost two years...
This commit is contained in:
parent
b311aba13d
commit
7b0501ae2a
@ -209,7 +209,7 @@ chroot "$ROOTFS" make-initrd -k "$KERNEL"
|
||||
# ...target device too
|
||||
sed -i "s,$LOOPROOT,$ROOTDEV," "$ROOTFS/etc/fstab"
|
||||
|
||||
if [ -x /sbin/lilo ]; then
|
||||
if [ -x "$ROOTFS"/sbin/lilo ]; then
|
||||
# configure and install bootloader
|
||||
REGEXP='^Disk .*: ([0-9]+) cylinders, ([0-9]+) heads, ([0-9]+) sectors/track*$'
|
||||
set -- $(sfdisk -l "$LOOPDEV" | grep -E "$REGEXP" | sed -r "s@$REGEXP@\1 \2 \3@")
|
||||
|
Loading…
Reference in New Issue
Block a user