Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Add note on grub required args #67

Merged
merged 1 commit into from
Jan 12, 2022
Merged
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
8 changes: 6 additions & 2 deletions content/en/docs/Customizing/configure_grub.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,18 @@ if [ -n "$recoverylabel" ]; then
set kernelcmd="console=tty1 root=live:CDLABEL=$recoverylabel rd.live.dir=/ rd.live.squashimg=$img panic=5"
else
# Boot arguments when the image is used as active/passive
set kernelcmd="console=tty1 root=LABEL=$label iso-scan/filename=$img panic=5 security=selinux selinux=1"
set kernelcmd="console=tty1 root=LABEL=$label iso-scan/filename=$img panic=5 security=selinux rd.cos.oemlabel=COS_OEM selinux=1"
fi

set initramfs=/boot/initrd
```

You can tweak that file to suit your needs if you need to specify persistent boot arguments.

{{% alert title="Note" %}}
`rd.cos.oemlabel=COS_OEM` is required inside the bootargs in order to access to the `/oem` mount within the rootfs stage. `COS_OEM` is the default label for the oem partition.
{{% /alert %}}

## Grub environment variables

cOS (since v0.5.8) makes use of the GRUB2 environment block which can used to define
Expand Down Expand Up @@ -169,4 +173,4 @@ It is possible to override the default fallback logic by setting `default_fallba
> grub2-editenv /oem/grubenv set default_fallback="2 0 1"
```

Will set the default fallback to "2 0 1" instead of the default "0 1 2".
Will set the default fallback to "2 0 1" instead of the default "0 1 2".