1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

try restarting with unit file after network-online.target

This commit is contained in:
George Hunt 2017-09-29 16:38:04 -07:00
parent bee031b298
commit ef91cda697
2 changed files with 15 additions and 0 deletions

View file

@ -27,3 +27,9 @@
shell: systemctl restart systemd-udevd.service
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
- name: reboot systemd-udevd so it has rootfs open read-write
template: src=udev-reboot.service dest=/etc/systemd/system
- name: enable the reboot service
shell: systemctl enable udev-reboot.service

View file

@ -0,0 +1,9 @@
[Unit]
Description=Make sure udev is operating on RW disk
After=network-online.target
[Service]
ExecStart=/bin/systemctl restart systemd-udevd.service
[Install]
WantedBy=multi-user.target