Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to "root=dissect" #39

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mkosi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ Output=%i_%v_%a
[Content]
UnifiedKernelImageFormat=%i_%v_%a
KernelCommandLine=
root=dissect
mount.usr=dissect
rw
audit=0
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted:swap=encrypted+unused+absent:home=unprotected:=ignore
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted+absent:swap=encrypted+unused+absent:home=unprotected+absent:=ignore
systemd.image_filter=usr=ParticleOS_*:usr-verity=ParticleOS_*:usr-verity-sig=ParticleOS_*:root=ParticleOS-*:swap=ParticleOS-*:home=ParticleOS-*
InitrdProfiles=
KernelModulesInitrdExclude=.*
KernelModulesInitrdInclude=default
Expand Down
2 changes: 2 additions & 0 deletions mkosi.uki-profiles/10-live.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Profile=

Cmdline=
root=tmpfs
mount.usr=dissect
rd.systemd.mask=systemd-repart.service
systemd.mask=systemd-repart.service
systemd.firstboot=no
Expand All @@ -18,5 +19,6 @@ Cmdline=
rw
audit=0
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:=ignore
systemd.image_filter=usr=ParticleOS_*:usr-verity=ParticleOS_*:usr-verity-sig=ParticleOS_*

SignExpectedPcr=no
1 change: 1 addition & 0 deletions mkosi.uki-profiles/80-storagetm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ Cmdline=
ro
audit=0
systemd.image_policy=-
root=off

SignExpectedPcr=no
5 changes: 4 additions & 1 deletion mkosi.uki-profiles/90-factory-reset.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ Profile=
TITLE=Reset System to Factory Defaults [CAUTION!]

Cmdline=
root=dissect
mount.usr=dissect
systemd.factory_reset=1
rw
audit=0
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted:swap=encrypted+unused+absent:home=unprotected:=ignore
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted+absent:swap=encrypted+unused+absent:home=unprotected+absent:=ignore
systemd.image_filter=usr=ParticleOS_*:usr-verity=ParticleOS_*:usr-verity-sig=ParticleOS_*:root=ParticleOS-*:swap=ParticleOS-*:home=ParticleOS-*

SignExpectedPcr=yes
1 change: 1 addition & 0 deletions mkosi.uki-profiles/91-factory-reset-with-tpm-clear.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ Cmdline=
ro
audit=0
systemd.image_policy=-
root=off

SignExpectedPcr=no
5 changes: 4 additions & 1 deletion mkosi.uki-profiles/95-emergency.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ Profile=
TITLE=Boot into Emergency Mode

Cmdline=
root=dissect
mount.usr=dissect
systemd.unit=emergency.target
rw
audit=0
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted:swap=encrypted+unused+absent:home=unprotected:=ignore
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted+absent:swap=encrypted+unused+absent:home=unprotected+absent:=ignore
systemd.image_filter=usr=ParticleOS_*:usr-verity=ParticleOS_*:usr-verity-sig=ParticleOS_*:root=ParticleOS-*:swap=ParticleOS-*:home=ParticleOS-*

SignExpectedPcr=yes
9 changes: 8 additions & 1 deletion mkosi.uki-profiles/99-debug.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ Profile=
TITLE=Boot with debug logs enabled

Cmdline=
root=dissect
mount.usr=dissect
debug
systemd.log_level=debug
systemd.journald.forward_to_console=1
rw
audit=0
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted:swap=encrypted+unused+absent:home=unprotected:=ignore
systemd.image_policy=esp=unprotected:xbootldr=unprotected+unused+absent:usr=signed:root=encrypted+absent:swap=encrypted+unused+absent:home=unprotected+absent:=ignore
systemd.image_filter=usr=ParticleOS_*:usr-verity=ParticleOS_*:usr-verity-sig=ParticleOS_*:root=ParticleOS-*:swap=ParticleOS-*:home=ParticleOS-*

# More knobs to enable:
# systemd.log_target=console
# rd.systemd.break=pre-switch-root

SignExpectedPcr=yes