Disable systemd-firstboot on Cloud images via cmdline (#2282195)
systemd 256 added a new feature which wants to create users on boot if none exist yet: https://github.com/systemd/systemd/commit/3ccadbce3358ba1db7ce5fa3f8dd17c627ffd93b We don't want that, cloud-init handles this situation. So let's disable it. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
<preferences profiles="Cloud-Base-Azure" arch="x86_64,aarch64">
|
<preferences profiles="Cloud-Base-Azure" arch="x86_64,aarch64">
|
||||||
<type image="oem" format="vhd-fixed" formatoptions="force_size"
|
<type image="oem" format="vhd-fixed" formatoptions="force_size"
|
||||||
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
||||||
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0"
|
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0 systemd.firstboot=off"
|
||||||
devicepersistency="by-uuid"
|
devicepersistency="by-uuid"
|
||||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
||||||
rootfs_label="fedora"
|
rootfs_label="fedora"
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<preferences profiles="Cloud-Base-AmazonEC2" arch="x86_64,aarch64">
|
<preferences profiles="Cloud-Base-AmazonEC2" arch="x86_64,aarch64">
|
||||||
<type image="oem"
|
<type image="oem"
|
||||||
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
||||||
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"
|
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 systemd.firstboot=off"
|
||||||
devicepersistency="by-uuid"
|
devicepersistency="by-uuid"
|
||||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
||||||
rootfs_label="fedora"
|
rootfs_label="fedora"
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
<preferences profiles="Cloud-Base-GCE" arch="x86_64,aarch64">
|
<preferences profiles="Cloud-Base-GCE" arch="x86_64,aarch64">
|
||||||
<type image="oem" format="gce"
|
<type image="oem" format="gce"
|
||||||
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
||||||
kernelcmdline="no_timer_check console=ttyS0,38400n8d"
|
kernelcmdline="no_timer_check console=ttyS0,38400n8d systemd.firstboot=off"
|
||||||
devicepersistency="by-uuid"
|
devicepersistency="by-uuid"
|
||||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
||||||
rootfs_label="fedora"
|
rootfs_label="fedora"
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
<preferences profiles="Cloud-Base-Generic" arch="x86_64,aarch64">
|
<preferences profiles="Cloud-Base-Generic" arch="x86_64,aarch64">
|
||||||
<type image="oem" format="qcow2"
|
<type image="oem" format="qcow2"
|
||||||
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
||||||
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"
|
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 systemd.firstboot=off"
|
||||||
devicepersistency="by-uuid"
|
devicepersistency="by-uuid"
|
||||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" efipartsize="100" firmware="uefi"
|
||||||
rootfs_label="fedora"
|
rootfs_label="fedora"
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
<preferences profiles="Cloud-Base-Generic" arch="ppc64le">
|
<preferences profiles="Cloud-Base-Generic" arch="ppc64le">
|
||||||
<type image="oem" format="qcow2"
|
<type image="oem" format="qcow2"
|
||||||
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
||||||
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8"
|
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 systemd.firstboot=off"
|
||||||
devicepersistency="by-uuid" target_blocksize="4096"
|
devicepersistency="by-uuid" target_blocksize="4096"
|
||||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" firmware="ofw"
|
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4" firmware="ofw"
|
||||||
rootfs_label="fedora"
|
rootfs_label="fedora"
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
<preferences profiles="Cloud-Base-Generic" arch="s390x">
|
<preferences profiles="Cloud-Base-Generic" arch="s390x">
|
||||||
<type image="oem" format="qcow2"
|
<type image="oem" format="qcow2"
|
||||||
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="compress=zstd:1"
|
||||||
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 dasd_mod.dasd=ipldev"
|
kernelcmdline="no_timer_check console=tty1 console=ttyS0,115200n8 dasd_mod.dasd=ipldev systemd.firstboot=off"
|
||||||
devicepersistency="by-uuid" target_blocksize="4096"
|
devicepersistency="by-uuid" target_blocksize="4096"
|
||||||
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4"
|
bootpartition="true" bootpartsize="1000" bootfilesystem="ext4"
|
||||||
rootfs_label="fedora"
|
rootfs_label="fedora"
|
||||||
@@ -154,6 +154,7 @@
|
|||||||
firmware="uefi" efipartsize="1000"
|
firmware="uefi" efipartsize="1000"
|
||||||
bootpartition="false"
|
bootpartition="false"
|
||||||
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="true"
|
filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="true"
|
||||||
|
kernelcmdline="systemd.firstboot=off"
|
||||||
devicepersistency="by-uuid"
|
devicepersistency="by-uuid"
|
||||||
rootfs_label="fedora"
|
rootfs_label="fedora"
|
||||||
initrd_system="none"
|
initrd_system="none"
|
||||||
|
|||||||
Reference in New Issue
Block a user