mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 01:21:34 -05:00
Compare commits
No commits in common. "bd0855ef196abced9c2a9d22c24276340cafab02" and "3821fe08f316d2cec2ad25691cc8f957cf79cb2a" have entirely different histories.
bd0855ef19
...
3821fe08f3
11
install.sh
11
install.sh
@ -14,7 +14,7 @@
|
|||||||
# License for the specific language governing permissions and limitations under
|
# License for the specific language governing permissions and limitations under
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
set -eu
|
set -u
|
||||||
|
|
||||||
output(){
|
output(){
|
||||||
printf '\e[1;34m%-6s\e[m\n' "${@}"
|
printf '\e[1;34m%-6s\e[m\n' "${@}"
|
||||||
@ -335,7 +335,10 @@ mount -o nodev,nosuid,noexec "${ESP}" /mnt/boot/efi
|
|||||||
## Pacstrap
|
## Pacstrap
|
||||||
output 'Installing the base system (it may take a while).'
|
output 'Installing the base system (it may take a while).'
|
||||||
|
|
||||||
pacstrap /mnt apparmor base chrony efibootmgr firewalld grub grub-btrfs inotify-tools linux-firmware linux-hardened linux-lts nano reflector snapper sudo zram-generator
|
output "You may see an error when mkinitcpio tries to generate a new initramfs."
|
||||||
|
output "It is okay. The script will regenerate the initramfs later in the installation process."
|
||||||
|
|
||||||
|
pacstrap /mnt apparmor base chrony efibootmgr firewalld grub grub-btrfs inotify-tools linux-firmware linux-hardened linux-lts nano reflector sbctl snapper sudo zram-generator
|
||||||
|
|
||||||
if [ "${virtualization}" = 'none' ]; then
|
if [ "${virtualization}" = 'none' ]; then
|
||||||
CPU=$(grep vendor_id /proc/cpuinfo)
|
CPU=$(grep vendor_id /proc/cpuinfo)
|
||||||
@ -543,6 +546,10 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
|||||||
# Generating locales
|
# Generating locales
|
||||||
locale-gen
|
locale-gen
|
||||||
|
|
||||||
|
# Create SecureBoot keys
|
||||||
|
# This isn't strictly necessary, but linux-hardened preset expects it and mkinitcpio will fail without it
|
||||||
|
sbctl create-keys
|
||||||
|
|
||||||
# Generating a new initramfs
|
# Generating a new initramfs
|
||||||
chmod 600 /boot/initramfs-linux*
|
chmod 600 /boot/initramfs-linux*
|
||||||
mkinitcpio -P
|
mkinitcpio -P
|
||||||
|
@ -15,10 +15,6 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
sudo pacman -S --noconfirm sbctl
|
|
||||||
sudo sbctl create-keys
|
|
||||||
sudo mkinitcpio -P
|
|
||||||
|
|
||||||
# Install new grub version
|
# Install new grub version
|
||||||
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user