Commit 7b0501ae authored by Michael Shigorin's avatar Michael Shigorin

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...
parent b311aba1
......@@ -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@")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment