@@ -68,12 +68,31 @@ the `/boot/loader/entries` files, which are in a standardized
68
68
format.
69
69
70
70
Typically, ` /boot ` is mounted read-only to limit
71
- the set of tools which write to this filesystem.
71
+ the set of tools which write to this filesystem. It is not
72
+ "physically" read-only by default. One approach to edit
73
+ them is to run a tool under a new mount namespace, e.g.
74
+
75
+ ``` bash
76
+ unshare -m
77
+ mount -o remount,rw /boot
78
+ # tool to edit /boot/loader/entries
79
+ ```
72
80
73
81
At the current time, ` bootc ` does not itself offer
74
82
an API to manipulate kernel arguments maintained per-machine.
75
83
76
- Other projects such as ` rpm-ostree ` do, via e.g. ` rpm-ostree kargs ` .
84
+ Other projects such as ` rpm-ostree ` do, via e.g. ` rpm-ostree kargs ` ,
85
+ which is just a frontend for editing the bootloader configuration
86
+ files. Note an important detail is that ` rpm-ostree kargs ` always
87
+ creates a new deployment.
88
+
89
+ ` rpm-ostree kargs ` and bootc will interoperate as they both
90
+ use the ostree backend today, and any kernel arguments changed
91
+ via that mechanism will persist across upgrades.
92
+
93
+ It is currently undefined behavior to remove kernel arguments
94
+ locally that are included in the base image via
95
+ ` /usr/lib/bootc/kargs.d ` .
77
96
78
97
## Injecting default arguments into custom kernels
79
98
0 commit comments