mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-11-05 03:14:06 +00:00
fix(functions): update cloud-init-network.service override for v. 25.3
Update /etc/systemd/system/cloud-init-network.service override to sync with latest netcat changes in Desktop images. Resolve traceback: netcat: /run/cloud-init/share/network.sock: Protocol wrong type for socket LP: #2128887
This commit is contained in:
parent
9172378dae
commit
78d502951b
@ -1112,11 +1112,11 @@ EOF
|
|||||||
mkdir -p chroot/etc/systemd/system/
|
mkdir -p chroot/etc/systemd/system/
|
||||||
cat <<EOF > chroot/etc/systemd/system/cloud-init-network.service
|
cat <<EOF > chroot/etc/systemd/system/cloud-init-network.service
|
||||||
${AUTOMATION_HEADER}
|
${AUTOMATION_HEADER}
|
||||||
# Based on cloud-init 24.3 for Desktop LiveCD
|
# Based on cloud-init 25.3 for Desktop LiveCD (LP: #2128887)
|
||||||
# Redact sysinit.target from Before, add After=NetworkManager*.service
|
# Redact sysinit.target from Before, add After=NetworkManager*.service
|
||||||
# (LP: #2008952)
|
# (LP: #2008952)
|
||||||
[Unit]
|
[Unit]
|
||||||
# https://cloudinit.readthedocs.io/en/latest/explanation/boot.html
|
# https://docs.cloud-init.io/en/latest/explanation/boot.html
|
||||||
Description=Cloud-init: Network Stage
|
Description=Cloud-init: Network Stage
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Wants=cloud-init-local.service
|
Wants=cloud-init-local.service
|
||||||
@ -1146,7 +1146,7 @@ Type=oneshot
|
|||||||
# process has completed this stage. The output from the return socket is piped
|
# process has completed this stage. The output from the return socket is piped
|
||||||
# into a shell so that the process can send a completion message (defaults to
|
# into a shell so that the process can send a completion message (defaults to
|
||||||
# "done", otherwise includes an error message) and an exit code to systemd.
|
# "done", otherwise includes an error message) and an exit code to systemd.
|
||||||
ExecStart=sh -c 'echo "start" | netcat -Uu -W1 /run/cloud-init/share/network.sock -s /run/cloud-init/share/network-return.sock | sh'
|
ExecStart=sh -c 'echo "start" | nc -U /run/cloud-init/share/network.sock | sh'
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
TimeoutSec=0
|
TimeoutSec=0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user