pc_engines_apu_centos_7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pc_engines_apu_centos_7 [2014/12/27 13:34] – [Preparation] admin | pc_engines_apu_centos_7 [2014/12/27 15:11] – [Preparation] admin | ||
---|---|---|---|
Line 32: | Line 32: | ||
#### | #### | ||
install | install | ||
- | skipx | ||
- | text | ||
# Base repo | # Base repo | ||
url --url=http:// | url --url=http:// | ||
# Configure updates repo | # Configure updates repo | ||
- | repo --name=" | + | repo --name=" |
network --onboot yes --bootproto dhcp | network --onboot yes --bootproto dhcp | ||
lang en_US.UTF-8 | lang en_US.UTF-8 | ||
keyboard --vckeymap=us --xlayouts=' | keyboard --vckeymap=us --xlayouts=' | ||
- | rootpw --iscrypted | + | rootpw --iscrypted |
firewall --service=ssh | firewall --service=ssh | ||
authconfig --enableshadow --passalgo=sha512 | authconfig --enableshadow --passalgo=sha512 | ||
Line 59: | Line 57: | ||
# Initialize boot partition. | # Initialize boot partition. | ||
- | part /boot --fstype=ext4 --fsoptions=" | + | part /boot --fstype=xfs --size=512 --asprimary |
# Create LVM pv and vg. | # Create LVM pv and vg. | ||
Line 66: | Line 64: | ||
# Create lv's, set discard, noatime and commit time. Leave some space left in the VG for later use. | # Create lv's, set discard, noatime and commit time. Leave some space left in the VG for later use. | ||
- | logvol swap --vgname=vg --size=512 | + | logvol swap --vgname=vg --size=512 |
- | logvol / | + | logvol / |
- | logvol /var --vgname=vg --size=4096 --name=lv_var | + | logvol /var --vgname=vg --size=4096 --name=lv_var |
- | logvol /home --vgname=vg --size=512 | + | logvol /home --vgname=vg --size=512 |
# Create non administrative user | # Create non administrative user | ||
- | user --name=benst --homedir=/ | + | user --name=benst --homedir=/ |
# Reboot after installation. | # Reboot after installation. | ||
Line 90: | Line 88: | ||
# Mount /tmp as tmpfs. | # Mount /tmp as tmpfs. | ||
- | echo "tmpfs /tmp tmpfs size=64m 0 0" >> /etc/fstab | + | systemctl enable |
#Add weekly fstrim job | #Add weekly fstrim job | ||
Line 99: | Line 97: | ||
trimlog=/ | trimlog=/ | ||
echo > \$trimlog | echo > \$trimlog | ||
- | for mount in \`lsblk -ro "rota,rm,fstype, | + | for fs in \$(lsblk -o MOUNTPOINT,DISC-MAX,FSTYPE |
- | printf " | + | printf " |
done | done | ||
EOF | EOF |
pc_engines_apu_centos_7.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1