[systemd-devel] How to use systemd-growfs* services with GPT automount

Nils Kattenbeck nilskemail at gmail.com
Tue Oct 24 21:48:44 UTC 2023


Hi,

On Tue, Oct 24, 2023 at 1:33 PM Lennart Poettering
<lennart at poettering.net> wrote:
>
> On Mo, 23.10.23 02:00, Nils Kattenbeck (nilskemail at gmail.com) wrote:
>
> > Hello,
> >
> > I am not sure how to get systemd-growfs-root.service to work with
> > automount. The partitions are configured via systemd-repart (and the
> > image created using mkosi). While the partitions are correctly grown
> > upon boot, the contained filesystem is not grown to match the
> > partition even though GrowFileSystem defaults to true. Is there
> > anything I am missing or an easy way to troubleshoot this and get more
> > information?
> >
> > One thing I notice is that the generator.late/-.mount unit has a
> > Options=ro which as per documentation prevents growing the filesystem.
> > However, the filesystem is actually mounted read-write so I assume
> > this is just an artifact of the initrd. Is it not possible to grow the
> > filesystem from which the initrd starts?
>
> Do you have "ro" or "rw" on the kernel cmdline?

I have neither set on the cmdline.

Greetings, Nils


More information about the systemd-devel mailing list