forked from roots/phyllomeos
		
	add latest flat-ldhi.cfg version
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| # Generated by pykickstart v3.32 | ||||
| # Generated by pykickstart v3.34 | ||||
| #version=DEVEL | ||||
| # X Window System configuration information | ||||
| xconfig  --defaultdesktop=GNOME --startxonboot | ||||
| @@ -393,20 +393,39 @@ EOF | ||||
|  | ||||
| %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 | ||||
|  | ||||
| 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' | ||||
| virsh pool-build iso # Build the pool | ||||
| virsh pool-start iso # Start it | ||||
| virsh pool-autostart iso # Set-it to autostart | ||||
|   | ||||
| wget https://git.phyllo.me/home/PhyllomeOS/raw/branch/main/post-installation/post-install.sh -P /mnt/sysimage/usr/sbin/ | ||||
| chmod +x /mnt/sysimage/usr/sbin/post-install.sh | ||||
|  | ||||
| # 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 | ||||
| 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 | ||||
|  | ||||
| %end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user