I can confirm this bug on my test VM:
|
| $ uname -a; lsb_release -a
| Linux Debian13-overlayroot-test 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux
| No LSB modules are available.
| Distributor ID: Debian
| Description: Debian GNU/Linux 13 (trixie)
| Release: 13
| Codename: trixie
|
| $ uname -a; lsb_release -a
| Linux Debian13-overlayroot-test 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux
| No LSB modules are available.
| Distributor ID: Debian
| Description: Debian GNU/Linux 13 (trixie)
| Release: 13
| Codename: trixie
|
I setup two VMs. The one with a clean installation of Debian12 behaves OK.
The other with a clean installation of Debian13 shows the described behaviour:
overlayroot is engaged, but the root filesystem is mounted RO
The other with a clean installation of Debian13 shows the described behaviour:
overlayroot is engaged, but the root filesystem is mounted RO
There are hints that systemd-fstab-generator.service is not able to remount root as RW.
|
| systemd-fstab-generator[368]: Checking was requested for "/media/root-ro/", but it is not a device.
|
| systemd-fstab-generator[368]: Checking was requested for "/media/root-ro/", but it is not a device.
|
**Steps to reproduce on clean systems**
* Install Debian12 or Debian13
* Update packages
$ sudo apt update && sudo apt upgrade
$ sudo apt update && sudo apt upgrade
* Install and configure Overlayroot
$ sudo apt install overlayroot
$ sudo vi /etc/overlayroot.conf
|
| overlayroot_cfgdisk="disabled"
| overlayroot="tmpfs:swap=1,recurse=0"
|
$ sudo apt install overlayroot
$ sudo vi /etc/overlayroot.conf
|
| overlayroot_cfgdisk="disabled"
| overlayroot="tmpfs:swap=1,recurse=0"
|
* Reboot system
**Check for mount**
|
| $ mount | grep overlay
| overlayroot on / type overlay (ro,relatime,lowerdir=/media/root-ro,upperdir=/media/root-rw/overlay,workdir=/media/root-rw/overlay-workdir/_,uuid=on)
|
| $ mount | grep overlay
| overlayroot on / type overlay (ro,relatime,lowerdir=/media/root-ro,upperdir=/media/root-rw/overlay,workdir=/media/root-rw/overlay-workdir/_,uuid=on)
|
**Logging**
|
| $ cat /run/initramfs/overlayroot.log
| builtin set cfgdisk='disabled'
| loaded module 'overlay'
| swap=1 recurse=0 debug=0 dir=/overlay
| device= mode=tmpfs driver=overlay
| [warning]: configuring overlayroot with driver=overlay mode=tmpfs opts='swap=1,recurse=0' per /dev/vda1/etc/overlayroot.conf
| mount -t overlay -o lowerdir=/media/root-ro,upperdir=/media/root-rw/overlay,workdir=/media/root-rw/overlay-workdir/_ overlayroot /root
| mounted /root read-only per kernel cmdline
| [success]: configured root with 'tmpfs:swap=1,recurse=0' using overlay per /dev/vda1/etc/overlayroot.conf
|
**Bootmessages**
|
| systemd-fstab-generator[368]: Checking was requested for "/media/root-ro/", but it is not a device.
| [ 1.766830] systemd[1]: Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
| [FAILED] Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
| systemd[1]: systemd-remount-fs.service: Failed with result 'exit-code'.
| systemd[1]: Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
| [FAILED] Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
|
| systemd-fstab-generator[368]: Checking was requested for "/media/root-ro/", but it is not a device.
| [ 1.766830] systemd[1]: Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
| [FAILED] Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
| systemd[1]: systemd-remount-fs.service: Failed with result 'exit-code'.
| systemd[1]: Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
| [FAILED] Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
|

