[syslinux] mount USB squashFS

Gregory Bartholomew gregory.lee.bartholomew at gmail.com
Fri Jul 23 10:16:04 PDT 2021

I'm not sure what the best way would be. I think the normal way would be to
add it to /etc/fstab. If you make the change before building the initramfs,
I think it should get included. I'm not sure if it would mount in time for
what you need though.

P.S. Sorry for top posting.

On Fri, Jul 23, 2021 at 8:22 AM slash woot <slashwoot at gmail.com> wrote:

> Thanks Gregory!
> Setting root=/dev/disk/by-label/Physix-Project as you mentioned does
> mount the usb at /sysroot.
> Now I think I just need to tweak systemd switch-root unit to perform a
> pre-mount
> of live/filesystem.squash. Unless there is a better way?
> regards,
> Tree
> On Thu, Jul 22, 2021 at 4:33 PM Gregory Bartholomew <
> gregory.lee.bartholomew at gmail.com> wrote:
>> Does it not work if you pass root=/dev/disk/by-label/Physix-Project on
>> the kernel command line?
>> On Thu, Jul 22, 2021 at 5:22 PM slash woot via Syslinux <
>> syslinux at syslinux.org> wrote:
>>> Hi everyone,
>>> I have used syslinux to create a bootable USB with my OS on it, but
>>> I have one issue to untangle.
>>> When the usb drive boots, it fails to perform a switch root to
>>> squash-filesystem on the usb. This is because it is not mounting
>>> the usb, and thus also not able to mount the squashFS image.
>>> If I search around I can figure out which device is my usb and
>>> switch-root it manually. But it would be great if this were
>>> automatic.
>>> My configuration for this project can be found here:
>>> https://github.com/PhysixProject/physix-on-usb
>>> Seeking advice. Thank you in advance.
>>> Tree
>>> _______________________________________________
>>> Syslinux mailing list
>>> Submissions to Syslinux at syslinux.org
>>> Unsubscribe or set options at:
>>> https://lists.syslinux.org/syslinux

More information about the Syslinux mailing list