Skip to content

Commit

Permalink
partition testing for an A/B update mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasudevan Perumal committed Oct 5, 2023
1 parent 728a7b9 commit 3377981
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 13 deletions.
4 changes: 2 additions & 2 deletions mkosi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Distribution=ubuntu
Architecture=x86-64

[Output]
Format=uki
Format=disk
OutputDirectory=./build_output
SplitArtifacts=yes

Expand Down Expand Up @@ -67,7 +67,7 @@ Bootloader=systemd-boot
Autologin=no
RootPassword=./rootpw
Ssh=yes
KernelCommandLine=systemd.volatile=overlay
KernelCommandLine=root=/dev/disk/by-partlabel/root_a systemd.volatile=overlay

[Validation]
Checksum=yes
Expand Down
5 changes: 0 additions & 5 deletions mkosi.extra/opt/repart.d/10-root.conf

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ Type=root
ExcludeFiles=/efi
Format=squashfs
CopyFiles=/
# Encrypt=key-file
Minimize=best
SizeMinBytes=2560M
SplitName=%t_a
Label=root_a
8 changes: 8 additions & 0 deletions mkosi.extra/opt/repart.d/10-rootb.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Partition]
Type=root
ExcludeFiles=/efi
Format=squashfs
CopyFiles=/
SizeMinBytes=2560M
SplitName=%t_b
Label=root_b
2 changes: 0 additions & 2 deletions mkosi.extra/opt/repart.d/20-data.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
20-data.conf

[Partition]
Type=linux-generic
Format=ext4
4 changes: 2 additions & 2 deletions mkosi.repart/00-esp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Type=esp
Format=vfat
CopyFiles=/efi:/
SizeMinBytes=512M
SizeMaxBytes=512M
SizeMinBytes=2G
SizeMaxBytes=2G

8 changes: 8 additions & 0 deletions mkosi.repart/10-roota.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Partition]
Type=root
ExcludeFiles=/efi
Format=squashfs
CopyFiles=/
SizeMinBytes=2560M
SplitName=%t_a
Label=root_a
8 changes: 8 additions & 0 deletions mkosi.repart/10-rootb.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Partition]
Type=root
ExcludeFiles=/efi
Format=squashfs
CopyFiles=/
SizeMinBytes=2560M
SplitName=%t_b
Label=root_b

0 comments on commit 3377981

Please sign in to comment.