reboot kexec, correct paths

shorten log file name
This commit is contained in:
lukas 2021-08-19 22:18:23 +02:00
parent bd3e3ece53
commit b712d96fc8
13 changed files with 19 additions and 15 deletions

View File

@ -22,7 +22,7 @@ nano # Minimal GNOME shell or desktop environment plus the nano text editor
%end
%post --nochroot --log=/mnt/sysimage/root/bdmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment
%post --nochroot --log=/mnt/sysimage/root/bdmd.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'

View File

@ -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/bhmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment
%post --nochroot --log=/mnt/sysimage/root/bhmd.log # Beginning of %post section. Those commands are executed outside the chroot environment
mkdir /mnt/sysimage/var/lib/libvirt/iso # Create a directory to store iso images
virsh pool-create-as --name iso --type dir --target /mnt/sysimage/var/lib/libvirt/iso # Make libvirt aware of this new directory by creating a so-called 'pool'

View File

@ -111,7 +111,7 @@ generic-release-notes # "Release Notes"
%end # End of the packages section
%post --log=/root/blmd-post.log # Beginning of the post-installation section. Add logging.
%post --log=/root/blmd.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

View File

@ -60,7 +60,7 @@ generic-release-notes # "Release Notes"
%end # End of the packages section
%post --log=/root/bmd-post.log # Beginning of the post-installation section. Add logging.
%post --log=/root/bmd.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

View File

@ -73,7 +73,7 @@ generic-release-notes # "Release Notes"
%end # End of the packages section
%post --log=/root/bnd-post.log # Beginning of the post-installation section. Add logging.
%post --log=/root/bnd.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

View File

@ -20,6 +20,8 @@
%include bhmd.cfg # A base hypervisor
%include bhamd.cfg # Specific virtualization configuration for AMD (tm) CPUs
reboot --kexec # Reboot straight into the system after a successfull installation
%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies.
virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM

View File

@ -20,6 +20,8 @@
%include bhmd.cfg # A base hypervisor
%include bhimd.cfg # Specific virtualization configuration for Intel(tm) CPU and Intel(tm) graphic cards
reboot --kexec # Reboot straight into the system after a successfull installation
%packages --exclude-weakdeps # Beginning of the packages section. Do not include weak dependencies.
virt-manager # Install virt-manager, the graphical front-end for QEMU/KVM

View File

@ -28,7 +28,7 @@ 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/dhmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
%post --nochroot --log=/mnt/sysimage/root/dhmd.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
# Create a file to autostart virt-manager
cat > /mnt/sysimage/etc/xdg/autostart/virt-manager.desktop << EOF

View File

@ -32,10 +32,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/ldhamd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
%post --nochroot --log=/mnt/sysimage/root/ldhamd.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
chown liveuser:liveuser /mnt/sysimage/var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory
chown liveuser:liveuser /mnt/sysimage/var/lib/libvirt/images # Make the user "test" the owner of this directory
%end # End of the %post section

View File

@ -32,10 +32,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/ldhimd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
%post --nochroot --log=/mnt/sysimage/root/ldhimd.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
chown liveuser:liveuser /mnt/sysimage/var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory
chown liveuser:liveuser /mnt/sysimage/var/lib/libvirt/images # Make the user "test" the owner of this directory
%end # End of the %post section

View File

@ -31,7 +31,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/ldhmd-post.log # Beginning of %post section. Those commands are executed outside the chroot environment. Add logging.
%post --nochroot --log=/mnt/sysimage/root/ldhmd.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 /mnt/sysimage/var/lib/libvirt/iso # Make the user "liveuser" the owner of this directory

View File

@ -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/ldmd-post.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging
%post --log=/root/ldmd.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging
cat >> /etc/rc.d/init.d/livesys << EOF

View File

@ -23,7 +23,7 @@
%end # End of the packages section
%post --log=/root/lmd-post.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging.
%post --log=/root/lmd.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging.
cat >> /etc/rc.d/init.d/livesys << EOF