opensuse: 支持 tumbleweed

This commit is contained in:
bin456789
2023-09-10 22:23:04 +08:00
parent 7405a7f242
commit 4159e60438
4 changed files with 60 additions and 35 deletions

View File

@ -714,10 +714,16 @@ modify_dd_os() {
fi
download_cloud_init_config $os_dir
if [ -f $os_dir/etc/redhat-release ]; then
find_and_mount /boot
find_and_mount /boot/efi
disable_selinux_kdump $os_dir
elif grep opensuse-tumbleweed $os_dir/etc/os-release; then
cp -f /etc/resolv.conf $os_dir/etc/resolv.conf
mount_pseudo_fs $os_dir
chroot $os_dir zypper install -y wicked
rm -f $os_dir/etc/resolv.conf
fi
}