diff --git a/leaves/bdmd.cfg b/leaves/bdmd.cfg index 8bba3c3..41ef020 100644 --- a/leaves/bdmd.cfg +++ b/leaves/bdmd.cfg @@ -22,7 +22,7 @@ nano # Minimal GNOME shell or desktop environment plus the nano text editor %end -%post --nochroot --log=/mnt/sysimage/root/ks-post.log # Beginning of %post section. Those commands are executed outside the chroot environment +%post --nochroot --log=/mnt/sysimage/root/bdmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment # set new default background (doesn't work. Would have to call a script on first boot or something) gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/elementary/'Morskie Oko.jpg' diff --git a/leaves/bhamd.cfg b/leaves/bhamd.cfg index fee0e11..45db3ed 100644 --- a/leaves/bhamd.cfg +++ b/leaves/bhamd.cfg @@ -8,7 +8,7 @@ # What ? This kickstart file configures an hypervisor for AMD (tm) CPUs # 'b' for basic building block, 'a' for amd, 'm' for minimal, 'd' for development only. -%post --nochroot --log=/mnt/sysimage/root/ks-post.log # Beginning of %post section. Those commands are executed outside the chroot environment +%post --nochroot --log=/mnt/sysimage/root/bhamd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment sed -i 's/\(quiet\)/\1 amd_iommu=on amd_iommu=pt rd.driver.pre=vfio-pci/i' /etc/default/grub # Load kernel modules in grub. diff --git a/leaves/bhimd.cfg b/leaves/bhimd.cfg index 1f29fcd..be03b1b 100644 --- a/leaves/bhimd.cfg +++ b/leaves/bhimd.cfg @@ -8,7 +8,7 @@ # What ? This kickstart file configures an hypervisor for Intel(tm) CPUs and Intel(tm) graphic cards # 'b' for basic building block, 'h' for hypervisor', 'i' for intel, 'm' for minimal, 'd' for development only. -%post --nochroot --log=/mnt/sysimage/root/ks-post.log # Beginning of %post section. Those commands are executed outside the chroot environment +%post --nochroot --log=/mnt/sysimage/root/bhimd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment sed -i 's/\(quiet\)/\1 intel_iommu=on iommu=pt rd.driver.pre=vfio-pci i915.enable_gvt=1/i' /etc/default/grub # Load kernel modules in grub. diff --git a/leaves/bhmd.cfg b/leaves/bhmd.cfg index fdee9e0..15d4114 100644 --- a/leaves/bhmd.cfg +++ b/leaves/bhmd.cfg @@ -22,7 +22,7 @@ guestfs-tools # Complementary tools useful for interacting with vith guest syste %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 +%post --nochroot --log=/mnt/sysimage/root/bhmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment mkdir /var/lib/libvirt/iso # Create a directory to store iso images virsh pool-create-as --name iso --type dir --target /var/lib/libvirt/iso # Make libvirt aware of this new directory by creating a so-called 'pool' diff --git a/leaves/blmd.cfg b/leaves/blmd.cfg index 4294818..15270a2 100644 --- a/leaves/blmd.cfg +++ b/leaves/blmd.cfg @@ -111,7 +111,7 @@ generic-release-notes # "Release Notes" %end # End of the packages section -%post --log=/root/ks-post.log # Beginning of the post-installation section. Add logging. +%post --log=/root/blmd-post.log # Beginning of the post-installation section. Add logging. # FIXME: it'd be better to get this installed from a package cat > /etc/rc.d/init.d/livesys << EOF #!/bin/bash diff --git a/leaves/bmd.cfg b/leaves/bmd.cfg index cab67a7..7c8db6c 100644 --- a/leaves/bmd.cfg +++ b/leaves/bmd.cfg @@ -60,7 +60,7 @@ generic-release-notes # "Release Notes" %end # End of the packages section -%post --log=/root/ks-post.log # Beginning of the post-installation section. Add logging. +%post --log=/root/bmd-post.log # Beginning of the post-installation section. Add logging. localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked. dnf update -y # Update the system diff --git a/leaves/bnd.cfg b/leaves/bnd.cfg index 86e918b..2d4f32f 100644 --- a/leaves/bnd.cfg +++ b/leaves/bnd.cfg @@ -73,7 +73,7 @@ generic-release-notes # "Release Notes" %end # End of the packages section -%post --log=/root/ks-post.log # Beginning of the post-installation section. Add logging. +%post --log=/root/bnd-post.log # Beginning of the post-installation section. Add logging. localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked. dnf update -y # Update the system diff --git a/leaves/ldhamd.cfg b/leaves/ldhamd.cfg index 1df2c7f..5c1395c 100644 --- a/leaves/ldhamd.cfg +++ b/leaves/ldhamd.cfg @@ -32,7 +32,7 @@ virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM %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/ldhamd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging. usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvirt group to allow it to interact with the guest-hypervisor. chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory diff --git a/leaves/ldhimd.cfg b/leaves/ldhimd.cfg index dce4850..bb06e31 100644 --- a/leaves/ldhimd.cfg +++ b/leaves/ldhimd.cfg @@ -32,7 +32,7 @@ virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM %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/ldhimd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging. usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvirt group to allow it to interact with the guest-hypervisor. chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory diff --git a/leaves/ldhmd.cfg b/leaves/ldhmd.cfg index 96fda69..4fb1e9f 100644 --- a/leaves/ldhmd.cfg +++ b/leaves/ldhmd.cfg @@ -31,18 +31,10 @@ virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM %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/ldhmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging. usermod -a -G libvirt liveuser # Make user "liveuser" part of the existing libvirt group to allow it to interact with the guest-hypervisor. chown liveuser:liveuser /var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory chown liveuser:liveuser /var/lib/libvirt/images # Make the user "test" the owner of this directory -# Autostart virt-manager -cat > /etc/xdg/autostart/virt-manager.desktop << EOF -[Desktop Entry] -Type=Application -Name=Virtual Machine Monitor -Exec=virt-manager -EOF - %end # End of the %post section \ No newline at end of file diff --git a/leaves/ldmd.cfg b/leaves/ldmd.cfg index 834af52..7d5fecd 100644 --- a/leaves/ldmd.cfg +++ b/leaves/ldmd.cfg @@ -34,7 +34,7 @@ %include blmd.cfg # A base for a minimal live machine %include bdmd.cfg # A base for a desktop environment -%post --log=/root/ks-post.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging +%post --log=/root/ldmd-post.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging cat >> /etc/rc.d/init.d/livesys << EOF diff --git a/leaves/lmd.cfg b/leaves/lmd.cfg index cd75cb6..589cfa1 100644 --- a/leaves/lmd.cfg +++ b/leaves/lmd.cfg @@ -23,7 +23,7 @@ %end # End of the packages section -%post --log=/root/ks-post.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging. +%post --log=/root/lmd-post.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging. cat >> /etc/rc.d/init.d/livesys << EOF