Package: live-build
Version: 3.0~a38-1
Severity: normal

When using a space in the label name for a hdd image, the build fails. The problem is that it tries to run

Chroot chroot "mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}"

with

MKFS_OPTIONS="... -n ${LB_HDD_LABEL}"

This fails because only the first word is considered the label, so the second word is the file it tries to mkfs on.

I tried to fix this by adding (single) quotes to the assignment of MKFS_OPTIONS in /usr/share/live/build/scripts/build/lb_binary_hdd, but the quotes ended up in the label name (first word, including the opening quote, was the label, next word, including the closing quote, was the "device"). So a bit more is required to fix it.

The error is very confusing and doesn't point at the problem at all. A quick improvement in case a real fix is too hard, would be to make lb config complain about the space.

Thanks,
Bas Wijnen



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to