mirror of
https://github.com/PhyllomeOS/phyllomeos.git
synced 2024-08-23 04:51:16 +00:00
change package selection
This commit is contained in:
parent
d327aea14d
commit
d37ed30478
@ -15,89 +15,39 @@
|
|||||||
# Bye bye!
|
# Bye bye!
|
||||||
|
|
||||||
cdrom # Configure the cdrom as the installation method
|
cdrom # Configure the cdrom as the installation method
|
||||||
|
|
||||||
text # Perform Installation in text mode
|
text # Perform Installation in text mode
|
||||||
|
|
||||||
## 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
|
|
||||||
|
|
||||||
## USER RELATED ##
|
|
||||||
|
|
||||||
# Set the keyboard layout
|
|
||||||
keyboard --xlayouts='ch (fr)'
|
|
||||||
|
|
||||||
# Set the system language to American English
|
|
||||||
lang en_US.UTF-8
|
|
||||||
|
|
||||||
# System timezone
|
|
||||||
timezone Europe/Paris --utc # Pour Paris !
|
|
||||||
|
|
||||||
# Set dummy encrypted root password and activate the root account
|
# Set dummy encrypted root password and activate the root account
|
||||||
rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz.
|
rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz.
|
||||||
|
|
||||||
# Create "test" user account
|
# Create "test" user account
|
||||||
user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test"
|
user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test"
|
||||||
|
|
||||||
## NETWORK RELATED ##
|
firewall --enabled # Activate the firewall
|
||||||
|
network --onboot=yes --bootproto=dhcp --hostname=vmd # Configure network interfaces and set hostname
|
||||||
|
|
||||||
# Activate the firewall
|
ignoredisk --only-use=vda # Only use disk labelled as vda
|
||||||
firewall --enabled
|
zerombr # WARNING : Dangerous command ! Will clear the Master Boot Record
|
||||||
|
clearpart --all --initlabel --drives=vda # Partition clearing information. This setup uses GPT by default.
|
||||||
|
part /boot/efi --fstype="efi" --ondisk=vda --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi # Will create an efi partitition of 128 MiB (vda1)
|
||||||
|
part /boot --fstype="ext4" --ondisk=vda --size=384 --label=boot # Create a boot partition of 384 MiB using the ext4 filesystem (vda2).
|
||||||
|
part / --fstype="ext4" --ondisk=vda --grow --label=root # The remaining space will be used for root (vda3).
|
||||||
|
bootloader --timeout=1 # Set the bootloader timeout to 1
|
||||||
|
|
||||||
# Configure Network Interfaces
|
%packages # Beginning of the packages section
|
||||||
network --onboot=yes --bootproto=dhcp --hostname=vemsd
|
|
||||||
|
|
||||||
# Run the Setup Agent on first boot
|
@core # minimal installation
|
||||||
# firstboot --enable
|
@guest-agents # qemu-guest agent
|
||||||
|
|
||||||
## DISK RELATED ##
|
|
||||||
|
|
||||||
# Only use disk labelled as vda
|
|
||||||
ignoredisk --only-use=vda
|
|
||||||
|
|
||||||
# WARNING : Dangerous command ! Will clear the Master Boot Record
|
|
||||||
zerombr
|
|
||||||
|
|
||||||
# Partition clearing information
|
|
||||||
clearpart --all --initlabel --drives=vda
|
|
||||||
|
|
||||||
# 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 --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
|
|
||||||
timezone Europe/Paris --utc
|
|
||||||
|
|
||||||
## SOFTWARE ##
|
|
||||||
|
|
||||||
# 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
|
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-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.
|
||||||
-fedora-release-notes # To be removed if we want to redistribute as Fedora Remix.
|
|
||||||
|
|
||||||
%end
|
%end # End of the packages section
|
||||||
|
|
||||||
## POST-INSTALLATION SCRIPT ##
|
%post # Beginning of the post-installation section
|
||||||
|
|
||||||
%post --log=/root/ks-post.log ## Start of the %post section with logging into /root/ks-post.log
|
|
||||||
# dnf update -y # Update the system
|
# dnf update -y # Update the system
|
||||||
localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked
|
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
|
# 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
|
# 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))
|
||||||
reboot # Reboot the installer (doesn't work (tm))
|
|
||||||
|
|
||||||
%end # End of the %post section
|
%end # End of the %post section
|
Loading…
Reference in New Issue
Block a user