path and netboot

correcth path for taking
 into account he fact
 that we are outside the chroot
 Comment out wget and netboot, because it doesn't work
 add more fine-grained logging
This commit is contained in:
lukas 2021-08-19 21:04:11 +02:00
parent 682dd7b8e9
commit 9a2e53377b

View File

@ -28,17 +28,17 @@ gnome-initial-setup # Add GNOME initial setup too to let user create local accou
%end # End of the packages section
%post --nochroot --log=/mnt/sysimage/root/ks-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
%post --nochroot --log=/mnt/sysimage/root/dhmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
# Create a file to autostart virt-manager
cat > /etc/xdg/autostart/virt-manager.desktop << EOF
cat > /mnt/sysimage/etc/xdg/autostart/virt-manager.desktop << EOF
[Desktop Entry]
Type=Application
Name=Virtual Machine Monitor
Exec=virt-manager
EOF
# Download netboot.xyz
wget https://boot.netboot.xyz/ipxe/netboot.xyz.iso -P /var/lib/libvirt/iso/
# Download netboot.xyz # cannot resolve hostname
# wget https://boot.netboot.xyz/ipxe/netboot.xyz.iso -P /var/lib/libvirt/iso/
%end # End of the %post section