Skip to content

on an read-only root #13

@chengjianwen

Description

@chengjianwen

My pi boot by nfs from a piserver, and I want to use overlayroot to set root writable. I succeed on the os from piserver (kernel version: 4.19.97-v7+), but failed on the latest raspberry pi os (kernel version: 5.4.51-v7l+).
I set debug option on cmdline.txt to see the initramfs debug, and found the error occurred on init-bottom-overlay script from line 64:
mount -t overlay overlay -olowerdir=/overlay/lower,upperdir=/overlay/upper,workdir=/overlay/work ${rootmnt}
mount: mount overlay on /root failed: No such device.
cp: can't stat '/root/etc/fstab': No such file or directory.
/script/init-bottom/init-bottom-overlay: line 71: can't create /root/etc/fstab: nonexistent directory.
/script/init-bottom/init-bottom-overlay: line 72: can't create /root/etc/fstab: nonexistent directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions