-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forwards compatibility for immutable-rootfs feat
This commit makes the immutable-rootfs module forwards compatible with the other changes in mount, elemental-sysroot and elemental-setup. It uses the new elemental.image and elemental.oemlabel cmdline paramters if found, otherwise falls back to the old parameters and also sets the /run/elemental/active|passive|recovery_mode files. Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
- Loading branch information
Showing
7 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
pkg/features/embedded/grub-default-bootargs/etc/cos/bootargs.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# TODO we could sanity check $partlabel is set here so we can error out before even attempting to boot | ||
set kernel=/boot/vmlinuz | ||
if [ "${mode}" == "recovery" ]; then | ||
set kernelcmd="console=tty1 console=ttyS0 root=LABEL=$recovery_label elemental.image=$mode elemental.oemlabel=COS_OEM security=selinux selinux=0 rd.neednet=1" | ||
set kernelcmd="console=tty1 console=ttyS0 root=LABEL=$recovery_label elemental.image=$mode elemental.oemlabel=COS_OEM rd.cos.mount=LABEL=$oem_label:/oem security=selinux selinux=0 rd.neednet=1" | ||
else | ||
set kernelcmd="console=tty1 console=ttyS0 root=LABEL=$state_label elemental.image=$mode elemental.oemlabel=COS_OEM panic=5 security=selinux selinux=0 rd.neednet=1 fsck.mode=force fsck.repair=yes" | ||
set kernelcmd="console=tty1 console=ttyS0 root=LABEL=$state_label elemental.image=$mode elemental.oemlabel=COS_OEM panic=5 security=selinux selinux=0 rd.neednet=1 rd.cos.mount=LABEL=$oem_label:/oem fsck.mode=force fsck.repair=yes" | ||
fi | ||
set initramfs=/boot/initrd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters