Change system to openSuse Kiwi
This commit is contained in:
0
root/.kiwi_dracut_hostonly.trigger
Normal file
0
root/.kiwi_dracut_hostonly.trigger
Normal file
0
root/.kiwi_grub_config.trigger
Normal file
0
root/.kiwi_grub_config.trigger
Normal file
4
root/etc/sysconfig/network/ifcfg-lan0
Normal file
4
root/etc/sysconfig/network/ifcfg-lan0
Normal file
@ -0,0 +1,4 @@
|
||||
BOOTPROTO='dhcp'
|
||||
MTU=''
|
||||
REMOTE_IPADDR=''
|
||||
STARTMODE='onboot'
|
1
root/etc/udev/rules.d/70-persistent-net.rules
Normal file
1
root/etc/udev/rules.d/70-persistent-net.rules
Normal file
@ -0,0 +1 @@
|
||||
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="?*", NAME="lan0"
|
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