Skip to content

Commit

Permalink
fstab: fix /etc and /frzr_root mounting in initramfs
Browse files Browse the repository at this point in the history
When using x-initrd.mount (that was previously ill-spelled) one doesn't have access to x-systemd.requires and must use x-systemd.requires-mounts-for instead.
  • Loading branch information
NeroReflex committed Apr 17, 2024
1 parent 915756f commit d90a935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-image.sh
Expand Up @@ -151,10 +151,10 @@ Subsystem sftp /usr/lib/ssh/sftp-server
" > /etc/ssh/sshd_config
echo "
LABEL=frzr_root /var btrfs defaults,subvolid=256,rw,noatime,nodatacow,nofail 0 0
LABEL=frzr_root /home btrfs defaults,subvolid=257,rw,noatime,nodatacow,nofail 0 0
LABEL=frzr_root /frzr_root btrfs defaults,subvolid=5,rw,noatime,nodatacow,x-initrd 0 2
overlay /etc overlay defaults,x-systemd.requires=/frzr_root,x-systemd.rw-only,lowerdir=/sysroot/etc,upperdir=/sysroot/frzr_root/etc,workdir=/sysroot/frzr_root/.etc,index=off,metacopy=off,comment=etcoverlay 0 0
LABEL=frzr_root /var btrfs defaults,subvolid=256,rw,noatime,nodatacow,nofail 0 0
LABEL=frzr_root /home btrfs defaults,subvolid=257,rw,noatime,nodatacow,nofail 0 0
LABEL=frzr_root /frzr_root btrfs defaults,subvolid=5,rw,noatime,nodatacow,x-initrd.mount 0 2
overlay /etc overlay defaults,x-systemd.requires-mounts-for=/frzr_root,x-systemd.requires-mounts-for=/sysroot/frzr_root,x-systemd.rw-only,lowerdir=/sysroot/etc,upperdir=/sysroot/frzr_root/etc,workdir=/sysroot/frzr_root/.etc,index=off,metacopy=off,comment=etcoverlay,x-initrd.mount 0 0
" > /etc/fstab
echo "
Expand Down

0 comments on commit d90a935

Please sign in to comment.