remove comments
This commit is contained in:
		| @@ -23,8 +23,7 @@ guestfs-tools # Complementary tools useful for interacting with vith guest syste | ||||
|  | ||||
| %end # End of the packages section | ||||
|  | ||||
| %post --nochroot --log=/mnt/sysimage/root/bh.log # Beginning of %post section. Those commands are executed outside the chroot environment. Logging is enabled to help with post-installation troubleshooting | ||||
| # %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 | ||||
| %post --nochroot --log=/mnt/sysimage/opt/base-hypervisor.log # Beginning of %post section. Those commands are executed outside the chroot environment. Logging is enabled to help with post-installation troubleshooting | ||||
|  | ||||
| # Load kernel modules by adding vfio, vfio_pci, vfio_iommu_type1, vfio_virqfd | ||||
| echo "vfio" > /mnt/sysimage/etc/modules-load.d/vfio.conf | ||||
| @@ -34,7 +33,7 @@ echo "vfio_virqfd" > /mnt/sysimage/etc/modules-load.d/vfio_virqfd.conf | ||||
|  | ||||
| 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/ # fetch netboot.xyz iso | ||||
| wget https://boot.netboot.xyz/ipxe/netboot.xyz.iso -P /mnt/sysimage/var/lib/libvirt/iso/ # fetch netboot.xyz iso and store it to the newly created iso directory | ||||
|  | ||||
| # fetch custom script and make it executable | ||||
| wget https://raw.githubusercontent.com/PhyllomeOS/phyllomeos/main/post/create-user-vms.sh -P /mnt/sysimage/usr/sbin/ | ||||
| @@ -44,31 +43,5 @@ chmod +x /mnt/sysimage/usr/sbin/create-user-vms.sh | ||||
| wget https://raw.githubusercontent.com/PhyllomeOS/phyllomeos/main/post/virtualization-tweaks-root-needed.sh -P /mnt/sysimage/usr/sbin/ | ||||
| chmod +x /mnt/sysimage/usr/sbin/virtualization-tweaks-root-needed.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=gdm.service | ||||
| # Requires=gdm.service | ||||
| #  | ||||
| # [Service] | ||||
| # Type=oneshot | ||||
| # ExecStart=/bin/bash /usr/sbin/post-install.sh | ||||
| # RemainAfterExit=yes | ||||
| #  | ||||
| # [Install] | ||||
| # WantedBy=multi-user.target | ||||
| # EOF | ||||
| #  | ||||
| # systemctl enable /mnt/sysimage/etc/systemd/system/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 so that it could regardless of the name of the ethernet device | ||||
| # nmcli con up br0 | ||||
|  | ||||
| %end # End of the %post section | ||||
|  | ||||
| # %post # Beginning of the post-installation section. | ||||
| # %end # End of the %post section | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user