#1107389 live-config: Configs in Trixie live media have no effect

#1107389#5
Date:
2025-06-06 19:36:45 UTC
From:
To:
Dear Maintainer,

If I create live/config.conf.d/custom.conf inside a Trixie live medium/iso tree with, for example, the following single line:

LIVE_USERNAME='mycustomuser'

...my LIVE_USERNAME parameter does not get picked up by live-config as it does when doing the same to a Bookworm live medium. Meanwhile, the live-config manpage for Trixie still lists live/config.conf.d/* as a valid path, so I would normally expect my config and its params to get picked up.

In init-config.sh, we currently assume that all live media are mounted inside (/usr)/lib/live/mount. This is true and valid as of Bookworm:

  > user@debian:~$ grep ^VERSION_CODENAME /etc/os-release && grep 'medium' /proc/mounts
  > VERSION_CODENAME=bookworm
  > /dev/sr0 /run/live/medium iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8 0 0
  > /dev/sr0 /usr/lib/live/mount/medium iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8 0 0

However, Trixie live images only seem to be mounted in /run/live:

  > user@debian:~$ grep ^VERSION_CODENAME /etc/os-release && grep 'medium' /proc/mounts
  > VERSION_CODENAME=trixie
  > /dev/sr0 /run/live/medium iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8 0 0
  > user@debian:~$ grep 'lib' /proc/mounts
  > user@debian:~$

One can of course work around this by simply placing configs in $rootfs/etc/live instead, but both scenarios are supposed to work.

Adding mountpoints starting with /run/live/medium to init-config.sh appears to resolve the issue for me. If paths starting with (/usr)/lib/live/mount/medium are no longer used by Debian live media at all, they can probably be removed at some point, but I am not sure about that, so my attached suggested patch retains them for now.

Thanks.

Best regards
Aka Sikrom

#1107389#10
Date:
2025-06-07 14:14:27 UTC
From:
To:
My initial patch fails to address the problem for hooks and preseeds.
I also forgot to update the manpage. Patch revised and attached.

Again, if /lib/live/mount is no longer used at all, I assume it can be
removed from live-config completely (either now or later), but I have
retained it in the patch for now since I am not sure.

#1107389#17
Date:
2025-06-12 13:08:10 UTC
From:
To:
Patch has now been submitted as MR to the deban-live project on Salsa. Roland Clobus from the project team is taking a closer look into whether the old paths are still needed.
#1107389#22
Date:
2025-07-22 15:40:37 UTC
From:
To:
Trixie is close to release, and by the time a maintainer picks up my MR - hopefully for forky - I may or may not be available in case any amendments or further investigation is needed. Thus unsetting myself as owner of this bug for now.

I am still happy to contribute to a fix once a maintainer has time to follow up, as long as I also am available around the same time.

Thanks.