Change system to openSuse Kiwi
This commit is contained in:
11
root/usr/lib/systemd/system/dracut_hostonly.service
Normal file
11
root/usr/lib/systemd/system/dracut_hostonly.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Rebuild dracut initrd for this host
|
||||
ConditionPathExists=/.kiwi_dracut_hostonly.trigger
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash -c 'dracut -f'
|
||||
ExecStartPost=/bin/bash -c 'rm -f /.kiwi_dracut_hostonly.trigger'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
11
root/usr/lib/systemd/system/grub_config.service
Normal file
11
root/usr/lib/systemd/system/grub_config.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Rebuild grub config from distro toolkit
|
||||
ConditionPathExists=/.kiwi_grub_config.trigger
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash -c 'grub2-mkconfig -o /boot/grub2/grub.cfg'
|
||||
ExecStartPost=/bin/bash -c 'rm -f /.kiwi_grub_config.trigger'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user