add latest flat-ldhi.cfg version

This commit is contained in:
lukas 2021-11-07 19:08:25 +01:00
parent 00563db3c1
commit cce25df82a

View File

@ -1,4 +1,4 @@
# Generated by pykickstart v3.32 # Generated by pykickstart v3.34
#version=DEVEL #version=DEVEL
# X Window System configuration information # X Window System configuration information
xconfig --defaultdesktop=GNOME --startxonboot xconfig --defaultdesktop=GNOME --startxonboot
@ -393,20 +393,39 @@ EOF
%end %end
%post --nochroot --logfile=/mnt/sysimage/root/bh.log %post --nochroot --logfile=/root/bh.log
# %post --log=/root/bh.log # Beginning of %post section. Those commands are executed outside the chroot environment. Logging is enabled to help with post-installation troubleshooting
mkdir /mnt/sysimage/var/lib/libvirt/iso # Create a directory to store iso images mkdir /mnt/sysimage/var/lib/libvirt/iso # Create a directory to store iso images
wget https://boot.netboot.xyz/ipxe/netboot.xyz.iso -P /mnt/sysimage/var/lib/libvirt/iso/ wget https://boot.netboot.xyz/ipxe/netboot.xyz.iso -P /mnt/sysimage/var/lib/libvirt/iso/
virsh pool-define-as iso dir /mnt/sysimage/var/lib/libvirt/iso/ # Make libvirt aware of this new directory by creating a so-called 'pool' wget https://git.phyllo.me/home/PhyllomeOS/raw/branch/main/post-installation/post-install.sh -P /mnt/sysimage/usr/sbin/
virsh pool-build iso # Build the pool chmod +x /mnt/sysimage/usr/sbin/post-install.sh
virsh pool-start iso # Start it
virsh pool-autostart iso # Set-it to autostart # Create new file /etc/systemd/system/postinstall.service using cat:
#
# cat > /mnt/sysimage/etc/systemd/system/post-install.service<< EOF
# [Unit]
# Description=post-installation configuration for Phyllome OS
# After=systemd-remount-fs.service
# Before=systemd-sysusers.service sysinit.target shutdown.target
# ConditionFirstBoot=yes
#
# [Service]
# Type=oneshot
# ExecStart=/bin/bash /usr/sbin/post-install.sh
# RemainAfterExit=yes
#
# [Install]
# WantedBy=multi-user.target
# EOF
#
# systemctl enable post-install.service # Enable systemd unit
# Add a network bridge. Still need to declare it to libvirt/virt-manager # Add a network bridge. Still need to declare it to libvirt/virt-manager
nmcli con add ifname br0 type bridge con-name br0 nmcli con add ifname br0 type bridge con-name br0
nmcli con add type bridge-slave ifname enp1s0 master br0 # to-do : generalize this command nmcli con add type bridge-slave ifname enp1s0 master br0 # to-do : generalize this command so that it could regardless of the name of the ethernet device
nmcli con up br0 nmcli con up br0
%end %end