uncomment cdrom
This commit is contained in:
		
							
								
								
									
										121
									
								
								misc/test.cfg
									
									
									
									
									
								
							
							
						
						
									
										121
									
								
								misc/test.cfg
									
									
									
									
									
								
							| @@ -5,56 +5,113 @@ | |||||||
| #  / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/   \____//____/ | #  / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/   \____//____/ | ||||||
| # /_/          /____/ | # /_/          /____/ | ||||||
|  |  | ||||||
| # WHAT ? Kickstart file to test new settings. | # WHAT ? This Kickstart file bootstraps a minimal server-oriented virtual machine. | ||||||
|  | # 'v' for virtual machine, 'e' for efi, 'm' for minimal, 's' for server, 'd' for development only. | ||||||
|  |  | ||||||
| # USAGE : Press the `tab` key during POST and apend that after the 'quiet' string :  | # USAGE : Press the `tab` or 'e' key during POST and apend that after the 'quiet' string : | ||||||
| # inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/f34/test.cfg | # inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/f34/vemsd.cfg | ||||||
| # inst.ks=url.phyllo.me/test.cfg | # A shorter URL can also be used : | ||||||
|  | # inst.ks=https://url.phyllo.me/vemsd | ||||||
|  |  | ||||||
| ## SYSTEM RELATED | # ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.  | ||||||
|  | # Bye bye! | ||||||
|  |  | ||||||
| # Services to enable/disable  ## To do | ## INSTALLATION SOURCE ## | ||||||
| # services --disabled=mlocate-updatedb,mlocate-updatedb.timer,geoclue,avahi-daemon |  | ||||||
|  |  | ||||||
| # Generated by Anaconda 34.24.9 | # Configure the cdrom as the installation method | ||||||
| # Generated by pykickstart v3.32 | # cdrom | ||||||
| #version=DEVEL |  | ||||||
| # Use graphical install |  | ||||||
| graphical |  | ||||||
|  |  | ||||||
| # Keyboard layouts | # Set URL | ||||||
| keyboard --xlayouts='ch (fr)','us' | url --url="http://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/os" | ||||||
| # System language |  | ||||||
|  | ## INSTALLATION TYPE ## | ||||||
|  |  | ||||||
|  | # Perform Installation in text mode | ||||||
|  | text | ||||||
|  |  | ||||||
|  | ## REPOSITORIES ## | ||||||
|  |  | ||||||
|  | # Add mirro and repo | ||||||
|  | url --mirrorlist="https://mirrors.fedoraproject.org/metalink?repo=fedora-34&arch=x86_64" | ||||||
|  | repo --name=fedora-updates --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f34&arch=x86_64" --cost=0 | ||||||
|  |  | ||||||
|  | repo --name=rpmfusion-free --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-34&arch=x86_64" --includepkgs=rpmfusion-free-release | ||||||
|  | repo --name=rpmfusion-free-updates --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-34&arch=x86_64" --cost=0 | ||||||
|  |  | ||||||
|  | ## USER RELATED ## | ||||||
|  |  | ||||||
|  | # Set the keyboard layout | ||||||
|  | keyboard --xlayouts='ch (fr)' | ||||||
|  |  | ||||||
|  | # Set the system language to American English | ||||||
| lang en_US.UTF-8 | lang en_US.UTF-8 | ||||||
|  |  | ||||||
| # Use CDROM installation media | # System timezone | ||||||
| cdrom | timezone Europe/Paris --utc # Pour Paris ! | ||||||
|  |  | ||||||
| %packages | # Set dummy encrypted root password and activate the root account | ||||||
| @^custom-environment | rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz. | ||||||
| @guest-agents |  | ||||||
| @networkmanager-submodules |  | ||||||
| @standard |  | ||||||
|  |  | ||||||
| %end | # Create "test" user account | ||||||
|  | user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test" | ||||||
|  |  | ||||||
|  | ## NETWORK RELATED ## | ||||||
|  |  | ||||||
|  | # Activate the firewall | ||||||
|  | firewall --enabled | ||||||
|  |  | ||||||
|  | # Configure Network Interfaces | ||||||
|  | network --onboot=yes --bootproto=dhcp --hostname=vemsd | ||||||
|  |  | ||||||
| # Run the Setup Agent on first boot | # Run the Setup Agent on first boot | ||||||
| firstboot --enable | firstboot --enable | ||||||
|  |  | ||||||
| # Generated using Blivet version 3.3.3 | ## DISK RELATED ## | ||||||
|  |  | ||||||
|  | # Only use disk labelled as vda | ||||||
| ignoredisk --only-use=vda | ignoredisk --only-use=vda | ||||||
|  |  | ||||||
|  | # WARNING : Dangerous command ! Will clear the Master Boot Record  | ||||||
|  | zerombr | ||||||
|  |  | ||||||
| # Partition clearing information | # Partition clearing information | ||||||
| clearpart --none --initlabel | clearpart --all --initlabel --drives=vda | ||||||
| # Disk partitioning information |  | ||||||
| part /boot --fstype="ext4" --ondisk=vda --size=384 --label=boot | # Disk partitioning information.  | ||||||
|  | # Will create an efi partitition of 128 MiB (vda1), a boot partition of 384 MiB using the ext4 filesystem (vda2). The remaining space will be used for root (vda3). This set up uses GPT by default.   | ||||||
| part /boot/efi --fstype="efi" --ondisk=vda --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi | part /boot/efi --fstype="efi" --ondisk=vda --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi | ||||||
| part / --fstype="ext4" --ondisk=vda --size=14846 --label=system --encrypted --luks-version=luks2 | part /boot --fstype="ext4" --ondisk=vda --size=384 --label=boot | ||||||
|  | part / --fstype="ext4" --ondisk=vda --grow --label=root | ||||||
|  |  | ||||||
|  | # part pv.122 --fstype="lvmpv" --ondisk=vda --grow # Example with LVM (untested)  | ||||||
|  | # volgroup system --pesize=4096 pv.122  | ||||||
|  | # logvol / --fstype="ext4" --percent 100 --label="root" --name=root --vgname=system | ||||||
|  |  | ||||||
| # System timezone | # System timezone | ||||||
| timezone Europe/Paris --utc | timezone Europe/Paris --utc | ||||||
|  |  | ||||||
| # Root password | ## SOFTWARE ## | ||||||
| rootpw --iscrypted $6$MHsknl33Td024Tdr$PSp2NyQ1wJj7fIWaNfUlY//N.FzEE5RzYEfZ3/E/cUNGF7a63eDwVwHIm/UcDgEEzUoKr8uAMtxz.4xGyy5Qb0 |  | ||||||
| user --name=lukas --password=$6$4/hNha6Lm85qHUwH$sBlh8N/AU0..yNovAUc5UHL3wE8jjIkJIzGpwbB9QxkntrcqytcsCiYLOcLdpMel4cSu0pEWBCNkSIH5fsZSp. --iscrypted --gecos="lukas" |  | ||||||
|  |  | ||||||
| # To be tested | # Install packages for the server environment. 'Core' and 'Base' are always selected  | ||||||
|  | %packages | ||||||
|  |  | ||||||
|  | @core # Would need to know what is included in core | ||||||
|  | qemu-guest-agent # Install software to allow the host to better interact with the guest (can't find the spice-vdagent package) | ||||||
|  | pciutils # Pciutils provides lspci commandline tool and is not installed by default  | ||||||
|  | ## spice-vdagent | ||||||
|  | -fedora-logos # To be removed if we want to redistribute as Fedora Remix.  | ||||||
|  | -fedora-release-notes  # To be removed if we want to redistribute as Fedora Remix.  | ||||||
|  |  | ||||||
|  | %end | ||||||
|  |  | ||||||
|  | ## POST-INSTALLATION SCRIPT ## | ||||||
|  |  | ||||||
|  | %post --log=/root/ks-post.log ## Start of the %post section with logging into /root/ks-post.log | ||||||
|  | dnf update -y # Update the system  | ||||||
|  | localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked | ||||||
|  | sed -i 's/5/1/' /etc/default/grub # set the GRUB_TIMEOUT countdown to 1 instead of 5 seconds. This command could be used bootloader --timeout=1 in the disk section | ||||||
|  | grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub. How about this command grub2-mkconfig -o /etc/grub2-efi.cfg | ||||||
|  |  | ||||||
|  | reboot # Reboot the installer (doesn't work (tm)) | ||||||
|  |  | ||||||
|  | %end # End of the %post section | ||||||
		Reference in New Issue
	
	Block a user