Commit 060bab42 authored by Ophélie Gagnard's avatar Ophélie Gagnard

dracut.module: Clean the code.

parent dd52b1f9
......@@ -5,32 +5,18 @@ hostonly=no
hostonly_cmdline=no
kernel_image=%KERNEL_IMAGE%
# model kernel command, see more in /boot/grub.cfg
#linux /boot/vmlinuz-4.19.0-17-amd64 root=UUID=c962bb70-ee0c-4561-9edd-56c269ef7e51 ro single mitigations=off console=ttyS1,57600
#kernel_cmdline="root=LABEL=ROOT ip=dhcp rd.neednet=1 ro single mitigations=off console=ttyS1,57600"
#kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=dhcp rd.neednet=1 ro console=ttyS1,57600"
#kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=195.90.118.203::195.90.118.193:255.255.255.224:douai-capri-009:enp193s0f1np1:off:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1 ro console=ttyS1,57600"
kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=%DEFAULT_IP%::%DEFAULT_ROUTER%:%FORMATTED_NETMASK%:%TARGET_HOSTNAME%:%DEFAULT_INTERFACE%:off:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1 ro console=ttyS1,57600"
#kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=::::%TARGET_HOSTNAME%:%DEFAULT_INTERFACE%:dhcp:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1 ro console=ttyS1,57600"
#kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=off rd.neednet=0 ro console=ttyS1,57600 rd.break=mount"
#kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=::::%TARGET_HOSTNAME%:%DEFAULT_INTERFACE%:dhcp:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1"
kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=dhcp rd.neednet=1 ro console=ttyS1,57600"
kernel_cmdline="root=UUID=%ROOT_PARTITION_ID% ip=10.42.42.42::10.42.42.42:255.255.255.255:aaaaa:%DEFAULT_INTERFACE%:off:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1 ro console=ttyS1,57600 rd.break=mount"
kernel_cmdline="root=LABEL=Root ip=10.42.42.42::10.42.42.42:255.255.255.255:aaaaa:enp193s0f1np1:off:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1 ro console=ttyS1,57600"
# options in "ip=" are dummy except for the last one (NTP)
# next line
# - works without the "kernel_image" option
# - fails to boot the image with an efi stub enabled [kernel or dracut? kernel i believe]
# - fails at systemd initqueue with the kernel_image option and a non efi stub enabled kernel
# - passes systemd initqueue when properly including the module directory
# (i.e. with "-amd64" and the end of the name and all the "modules.xxx" files)
kernel_cmdline="root=/dev/nvme0n1p2 ip=10.42.42.42::10.42.42.42:255.255.255.255:aaaaa:eno1:off:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1 ro console=ttyS1,57600"
kernel_cmdline="root=LABEL=Root ip=10.42.42.42::10.42.42.42:255.255.255.255:aaaaa:eno1:off:1.1.1.1:8.8.8.8:130.79.14.172 rd.neednet=1 ro console=ttyS1,57600"
#kernel_cmdline="root=LABEL=Root ip=dhcp rd.neednet=1 ro console=ttyS1,57600"
#kernel_cmdline="ip=dhcp rd.neednet=1"
drivers_dir=%DRIVERS_DIR%
add_drivers+=" xfs "
show_modules=yes
reproducible=yes
#loginstall=./loginstall/
uefi=yes
uefi_stub=/usr/lib/systemd/boot/efi/linuxx64.efi.stub
uefi_secureboot_cert=%PUBLIC_CERT_DIR%/%CERT_NAME%
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment