forked from roots/phyllomeos
		
	comment out the specifc
The idea is to make the script ouput a vanilla Fedora server
This commit is contained in:
		
							
								
								
									
										51
									
								
								f34/main.cfg
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								f34/main.cfg
									
									
									
									
									
								
							| @@ -1,27 +1,26 @@ | ||||
| # Kickstart file that bootstraps a minimal fedora 34 server.   | ||||
| # Made to be small. | ||||
| # WHAT ? Kickstart file that bootstraps a minimal fedora 34 server, vanilla. | ||||
|  | ||||
| # ATTENTION : this script will automatically DESTROY the main virtual disk 'vda' and all of its contents.  | ||||
| # Bye bye! | ||||
|  | ||||
| # ATTENTION : user accounts are password-protected and passwords are crypted in the file.  | ||||
| # Not ready yet for public use.  | ||||
| # Okay okay, if you really want to hack it, you can reset the root password of the resulting image with the 'virt-sysprep' tool | ||||
| # ATTENTION : user accounts are password-protected and passwords are encrypted in the file.  | ||||
| # If you really want to hack it, you can reset the root password of the resulting image with the 'virt-sysprep' tool | ||||
| # Do something like virt-sysprep --root-password password: -a thenameofyourdiskimage.img.  | ||||
| # Your password must be added after the semicolon ":" | ||||
|  | ||||
| # USAGE : Press the `tab` key during POST and apend that after the 'quiet' string :  | ||||
| # inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/f34/main.cfg | ||||
|  | ||||
| # Only for development purposes | ||||
| # Requires a 3GB disk image | ||||
| # It expects a BIOS-based virtual machine (no-EFI support). There will be a kickstart file for that (tm) | ||||
| # Tested on the Q35 chipset | ||||
| # This kickstart creates two partitions, vda1 for /boot and vda2 for / | ||||
| # It uses the ext4 filesystem | ||||
| # It will populate all the available disk space | ||||
| # After the installation, it will install updates | ||||
| # It will also install the qemu and spice guest agents | ||||
| # REQUIRES :  | ||||
| # - Requires a 3GB disk image (tested with QCOW2, may works with most virtio-based storage) | ||||
| # - Expects a BIOS-based virtual machine (no-EFI support). There will be a kickstart file for that (tm) | ||||
| # - Tested on the Q35 virtual chipset (5.2), but may works on i440fx virtual chipsets. | ||||
|  | ||||
| # TLDR : | ||||
| # - This kickstart creates two partitions, vda1 for `/boot` and vda2 for `/` | ||||
| # - It uses the ext4 filesystem | ||||
| # - It will populate all the available disk space | ||||
| # - After the installation, it will install updates | ||||
|  | ||||
| # Originally generated by Anaconda 34.24.9 | ||||
| # Orginally generated by pykickstart v3.32 | ||||
| @@ -123,34 +122,35 @@ part / --fstype="ext4" --ondisk=vda --grow --label=system | ||||
| ## Start of the %post section with logging into /root/ks-post.log | ||||
| %post --log=/root/ks-post.log | ||||
|  | ||||
| ## Set keymap to ch-fr. ##Doesn't survive a reboot. Or only touches the console | ||||
| ## Set keymap to ch-fr. ## Doesn't survive a reboot. Or only touches the console | ||||
| #localectl set-keymap ch-fr | ||||
|  | ||||
| # Set new hostname. ##Doesn't work | ||||
| # Set new hostname. ## Doesn't survive a reboot | ||||
| # hostnamectl set-hostname kickstarted-fedora | ||||
|  | ||||
| # Update the system | ||||
| dnf update -y | ||||
|  | ||||
| # Remove the Headless Management group, which provides Cockpit, and that we don't need | ||||
| ## Remove the Headless Management group, which provides Cockpit, and that we don't need | ||||
| # dnf groupremove -y "Headless Management" | ||||
|  | ||||
| dnf groupremove -y "Headless Management" | ||||
| ## Remove the Hardware Support group, which provides extra-hardware support beyond linux-firmware | ||||
| # dnf groupremove -y "Hardware Support" | ||||
|  | ||||
| # Install dejavu mono fonts | ||||
| ## Install dejavu mono fonts. For some reason | ||||
| # dnf install -y dejavu-sans-mono-fonts | ||||
|  | ||||
| # Install the desktop environment, a terminal and a web browser. Uncomment for VM  | ||||
| ## Install the desktop environment, a terminal and a web browser. Uncomment for VM  | ||||
| # dnf install -y gnome-shell gnome-terminal firefox | ||||
|  | ||||
| # WPA Supplicant for Linux. Not integrated by default in gnome-shell. Not useful for virtual machine  | ||||
| ## WPA Supplicant for Linux. Not integrated by default in gnome-shell. Not useful for virtual machine  | ||||
| # dnf install -y wpa_supplicant | ||||
|  | ||||
| # Set the desktop environment as the default target with systemd. Uncomment for graphical system | ||||
| ## Set the desktop environment as the default target with systemd. Uncomment for graphical system | ||||
| # systemctl set-default graphical.target | ||||
|  | ||||
| # We also need to install a qemu and spice guest agents, respectively to allow a better support for spice and the ability for the host to better interact with the guest | ||||
|  | ||||
| dnf install -y spice-vdagent qemu-guest-agent | ||||
| ## We also need to install a qemu and spice guest agents, respectively to allow a better support for spice and the ability for the host to better interact with the guest | ||||
| # dnf install -y spice-vdagent qemu-guest-agent | ||||
|  | ||||
| # Install virtualization-related utilites, including virt-manager. Only useful for desktop system  | ||||
| # dnf groupinstall -y Virtualization   | ||||
| @@ -181,6 +181,7 @@ dnf install -y spice-vdagent qemu-guest-agent | ||||
| # Update grub  | ||||
| # grub2-mkconfig -o /boot/grub2/grub.cfg | ||||
|  | ||||
| ## Reboot the installer (doesn't work (tm)) | ||||
| reboot | ||||
|  | ||||
| ## End of the %post section | ||||
|   | ||||
		Reference in New Issue
	
	Block a user