mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 07:21:14 +02:00
sys-apps/ignition: remove dependency on OEM part.
Not all images have a seperate OEM partition. This was causing boot failures while the service waited on the device to appear. Instead, a generator in the initramfs will populate an arg file with the OEM_ID and the Ignition stages will source that into the environment.
This commit is contained in:
parent
3a423414d0
commit
9122aea73b
@ -5,9 +5,6 @@ DefaultDependencies=false
|
||||
Requires=local-fs-pre.target
|
||||
Before=local-fs-pre.target
|
||||
|
||||
Requires=mnt-oem.mount
|
||||
After=mnt-oem.mount
|
||||
|
||||
# setup networking
|
||||
Wants=initrd-systemd-networkd.service
|
||||
After=initrd-systemd-networkd.service
|
||||
@ -21,6 +18,5 @@ After=disk-uuid.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Environment=OEM_ID=pxe
|
||||
EnvironmentFile=-/mnt/oem/oem-release
|
||||
EnvironmentFile=/run/ignition.env
|
||||
ExecStart=/usr/bin/ignition --root=/sysroot --oem=${OEM_ID} --stage=disks
|
||||
|
@ -6,9 +6,6 @@ Before=initrd-parse-etc.service
|
||||
Requires=initrd-root-fs.target
|
||||
After=initrd-root-fs.target
|
||||
|
||||
Requires=mnt-oem.mount
|
||||
After=mnt-oem.mount
|
||||
|
||||
Requires=ignition-disks.service
|
||||
After=ignition-disks.service
|
||||
|
||||
@ -26,6 +23,5 @@ After=initrd-systemd-resolved.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Environment=OEM_ID=pxe
|
||||
EnvironmentFile=-/mnt/oem/oem-release
|
||||
EnvironmentFile=/run/ignition.env
|
||||
ExecStart=/usr/bin/ignition --root=/sysroot --oem=${OEM_ID} --stage=files
|
||||
|
@ -1,7 +0,0 @@
|
||||
[Unit]
|
||||
DefaultDependencies=false
|
||||
Before=initrd-switch-root.target
|
||||
|
||||
[Mount]
|
||||
What=/dev/disk/by-label/OEM
|
||||
Where=/mnt/oem
|
@ -31,7 +31,6 @@ src_compile() {
|
||||
src_install() {
|
||||
newbin ${GOBIN}/src ${PN}
|
||||
|
||||
systemd_dounit "${FILESDIR}"/mnt-oem.mount
|
||||
systemd_dounit "${FILESDIR}"/ignition.target
|
||||
systemd_dounit "${FILESDIR}"/ignition-disks.service
|
||||
systemd_dounit "${FILESDIR}"/ignition-files.service
|
||||
|
Loading…
x
Reference in New Issue
Block a user