Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1010684: Boot parameter to specify directory of filesystem.squashfs (other than /boot)

206 views
Skip to first unread message

Ben Westover

unread,
May 6, 2022, 10:40:04 PM5/6/22
to
Package: live-boot
Severity: wishlist
Tags: upstream
X-Debbugs-Cc: kwesto...@gmail.com

Hello,

I have made a multiboot USB using SYSLINUX. For distributions that use
dracut, I can specify the rd.live.dir boot parameter to change the
directory that it looks for filesystem.squashfs in. There are similar
options for other live systems, like Arch Linux's archisobasedir.
This is useful to me because I can put each distribution's filesystem in
its own folder.

I was not able to find such a parameter for Debian, which limits me to
only one Debian-based distribution on the drive because the filesystem
squashfs must be in /boot, and there can only be one.
If a simple livedir= option could be added to specify the directory, it
would help me tremendously.

Thanks,
--
Ben Westover


-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-1-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages live-boot depends on:
pn live-boot-initramfs-tools | live-boot-backend <none>

Versions of packages live-boot recommends:
ii live-boot-doc 1:20220505
pn live-tools <none>
ii rsync 3.2.4-1
pn uuid-runtime <none>

Versions of packages live-boot suggests:
ii cryptsetup 2:2.4.3-1
pn curlftpfs <none>
pn httpfs2 <none>
ii wget 1.21.3-1+b1
OpenPGP_signature

Stefan Baur

unread,
May 9, 2022, 6:50:03 AM5/9/22
to
Am 07.05.22 um 04:37 schrieb Ben Westover:
> Package: live-boot
> Severity: wishlist
> Tags: upstream
> X-Debbugs-Cc: kwesto...@gmail.com
>
> Hello,
>
> I have made a multiboot USB using SYSLINUX. For distributions that use
> dracut, I can specify the rd.live.dir boot parameter to change the
> directory that it looks for filesystem.squashfs in. There are similar
> options for other live systems, like Arch Linux's archisobasedir.
> This is useful to me because I can put each distribution's filesystem in
> its own folder.
>
> I was not able to find such a parameter for Debian, which limits me to
> only one Debian-based distribution on the drive because the filesystem
> squashfs must be in /boot, and there can only be one.
> If a simple livedir= option could be added to specify the directory, it
> would help me tremendously.

<https://manpages.debian.org/bullseye/live-boot-doc/live-boot.7.en.html>

mentions "findiso" and "fromiso" as well as "live-media|bootfrom" and
"live-media-path".

One way is to stuff your squashfs into an ISO image (nothing else needed
in there, just the subdirectory /live containing your squashfs), and use
one of the iso parameters.

Using the live-media*-Parameters should make it possible to use a
squashfs file directly, without having to wrap it into an iso. I haven't
tried this myself lately, though.

Kind Regards,
Stefan Baur

Ben Westover

unread,
May 9, 2022, 7:10:04 PM5/9/22
to
Hello Stefan,

> <https://manpages.debian.org/bullseye/live-boot-doc/live-boot.7.en.html>
> mentions "findiso" and "fromiso" as well as "live-media|bootfrom" and
> "live-media-path".

Yeah, I read the manpage right before making this bug.

> One way is to stuff your squashfs into an ISO image (nothing else needed
> in there, just the subdirectory /live containing your squashfs), and use
> one of the iso parameters.

I didn't think of using the ISO parameters that way, smart idea.
If my idea of having just SquashFSes in their own folders doesn't work,
I'll try this out.

> Using the live-media*-Parameters should make it possible to use a
> squashfs file directly, without having to wrap it into an iso. I haven't
> tried this myself lately, though.

From how I understood the explanation of live-media/bootfrom, it looks
like it wants you to specify a device to look inside /live of. I would
need to create a separate partition for every squashfs, /live in each.

I don't believe there are currently any options that allow me to achieve
my goal without wrapping the squashfs. Thank you for your help!
--
Ben Westover
OpenPGP_signature

Stefan Baur

unread,
May 10, 2022, 12:50:03 AM5/10/22
to
Hello Ben,

Am 10.05.22 um 00:56 schrieb Ben Westover:

>> <https://manpages.debian.org/bullseye/live-boot-doc/live-boot.7.en.html>
>> mentions "findiso" and "fromiso" as well as "live-media|bootfrom" and
>> "live-media-path".

[...]

>> Using the live-media*-Parameters should make it possible to use a
>> squashfs file directly, without having to wrap it into an iso. I haven't
>> tried this myself lately, though.
>
> From how I understood the explanation of live-media/bootfrom, it looks
> like it wants you to specify a device to look inside /live of. I would
> need to create a separate partition for every squashfs, /live in each.
>
> I don't believe there are currently any options that allow me to achieve
> my goal without wrapping the squashfs. Thank you for your help!

Like I said, I haven't tried this myself lately, but live-media-path
allows you to change exactly the "/live" part, according to the manpage.

So you could have something like
live-media-path=/mycoolsquashfsgoeshere/ for your custom squashfs and
live-media-path=/officialdebiansquashfsgoeshere/ for an official image,
for example.

You will probably have to combine that with live-media=removable-usb so
it will scan removable USB media only.

I don't see why you would need a different partition for each image, you
should be able to use different live-media-path entries instead (one per
boot menu entry).

Kind Regards,
Stefan Baur
0 new messages