[syslinux] Installing extlinux into a disk image without being root?

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Apr 15 23:33:52 PDT 2020


Is it possible to install extlinux into a disk image, without being
root ?

It seems like extlinux --install absolutely requires the specific block
device in which extlinux should be installed to be mounted. This
prevents from doing an extlinux installation as non-root, which is
annoying for build systems such as Buildroot [1] that build a complete
Linux system from source, without being root, and aim at producing
ready to flash disk images, also without being root.

I have tried:

  extlinux --device disk.img --install boot/extlinux

but extlinux complains:

./output/host/sbin/extlinux: path boot/extlinux/ doesn't match device disk.img

Am I missing something in what options we have to install extlinux ?


Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering

More information about the Syslinux mailing list