Skip to content

Commit

Permalink
adding fstab entry to mount home data image
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasudevan Perumal committed Oct 17, 2023
1 parent fd2c19c commit 352835b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions mkosi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ Packages=
Bootable=yes
Bootloader=systemd-boot
Autologin=no
RootPassword=./rootpw
Ssh=yes
KernelCommandLine=root=/dev/disk/by-partlabel/root_a systemd.volatile=overlay
KernelCommandLine=root=/dev/disk/by-partlabel/root_a systemd.volatile=overlay

[Validation]
Checksum=yes
Passphrase=./passphrase
3 changes: 3 additions & 0 deletions mkosi.extra/etc/fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/data_images/home.img /home ext4 loop=/dev/loop20,rw,defaults,auto,noatime,nodiratime,x-systemd.before=local-fs.target 0 0
# /data_images/var.img /var ext4 loop=/dev/loop21,rw,defaults,x-initrd.mount 0 1

3 changes: 2 additions & 1 deletion mkosi.repart/10-roota.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Type=root
ExcludeFiles=/efi
Format=squashfs
CopyFiles=/
SizeMinBytes=2560M
# SizeMinBytes=2560M
Minimize=best
SplitName=%t_a
Label=root_a
File renamed without changes.

0 comments on commit 352835b

Please sign in to comment.