-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support to enable fips for the command sonic_installer (#2154)
What I did Support to enable fips for the command sonic_installer See sonic-net/SONiC#997 How I did it sonic-installer set-fips [--enable-fips|--disable-fips] sonic-installer get-fips
- Loading branch information
Showing
10 changed files
with
280 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
serial --port=0x3f8 --speed=9600 --word=8 --parity=no --stop=1 | ||
terminal_input console serial | ||
terminal_output console serial | ||
|
||
set timeout=5 | ||
|
||
if [ -s $prefix/grubenv ]; then | ||
load_env | ||
fi | ||
if [ "${saved_entry}" ]; then | ||
set default="${saved_entry}" | ||
fi | ||
if [ "${next_entry}" ]; then | ||
set default="${next_entry}" | ||
unset next_entry | ||
save_env next_entry | ||
fi | ||
if [ "${onie_entry}" ]; then | ||
set next_entry="${default}" | ||
set default="${onie_entry}" | ||
unset onie_entry | ||
save_env onie_entry next_entry | ||
fi | ||
|
||
menuentry 'SONiC-OS-internal-202205.57377412-84a9a7f11b' { | ||
search --no-floppy --label --set=root SONiC-OS | ||
echo 'Loading SONiC-OS OS kernel ...' | ||
insmod gzio | ||
if [ x = xxen ]; then insmod xzio; insmod lzopio; fi | ||
insmod part_msdos | ||
insmod ext2 | ||
linux /image-internal-202205.57377412-84a9a7f11b/boot/vmlinuz-5.10.0-12-2-amd64 root=UUID=df89970c-bf6d-40cf-80fc-a977c89054dd rw console=tty0 console=ttyS0,9600n8 quiet intel_idle.max_cstate=0 net.ifnames=0 biosdevname=0 loop=image-internal-202205.57377412-84a9a7f11b/fs.squashfs loopfstype=squashfs systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor varlog_size=4096 usbcore.autosuspend=-1 acpi_enforce_resources=lax acpi=noirq | ||
echo 'Loading SONiC-OS OS initial ramdisk ...' | ||
initrd /image-internal-202205.57377412-84a9a7f11b/boot/initrd.img-5.10.0-12-2-amd64 | ||
} | ||
menuentry 'SONiC-OS-master-11298.116581-1a4f95389' { | ||
search --no-floppy --label --set=root SONiC-OS | ||
echo 'Loading SONiC-OS OS kernel ...' | ||
insmod gzio | ||
if [ x = xxen ]; then insmod xzio; insmod lzopio; fi | ||
insmod part_msdos | ||
insmod ext2 | ||
linux /image-master-11298.116581-1a4f95389/boot/vmlinuz-5.10.0-12-2-amd64 root=UUID=df89970c-bf6d-40cf-80fc-a977c89054dd rw console=tty0 console=ttyS0,9600n8 quiet intel_idle.max_cstate=0 sonic_fips=1 net.ifnames=0 biosdevname=0 loop=image-master-11298.116581-1a4f95389/fs.squashfs loopfstype=squashfs systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor varlog_size=4096 usbcore.autosuspend=-1 acpi_enforce_resources=lax acpi=noirq | ||
echo 'Loading SONiC-OS OS initial ramdisk ...' | ||
initrd /image-master-11298.116581-1a4f95389/boot/initrd.img-5.10.0-12-2-amd64 | ||
} | ||
menuentry ONIE { | ||
search --no-floppy --label --set=root ONIE-BOOT | ||
echo 'Loading ONIE ...' | ||
chainloader +1 | ||
} |
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