Sed expand variable
This commit is contained in:
parent
a2be433226
commit
76f7c13612
@ -306,15 +306,15 @@ install() {
|
||||
127.0.1.1 arch.localdomain arch
|
||||
__EOF__
|
||||
|
||||
sed 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
||||
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
||||
locale-gen
|
||||
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
|
||||
|
||||
sed 's/HOOKS=(.*)/HOOKS=(base udev autodetect keyboard modconf block encrypt filesystems fsck)/' /etc/mkinitcpio.conf
|
||||
sed -i 's/HOOKS=.*/HOOKS=(base udev autodetect keyboard modconf block encrypt filesystems fsck)/' /etc/mkinitcpio.conf
|
||||
mkinitcpio -P
|
||||
|
||||
yes | pacman -S grub efibootmgr intel-ucode amd-ucode
|
||||
sed 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="cryptdevice=UUID=$(blkid -s UUID -o value "${install_path}p2"):cryptroot"/' /etc/default/grub
|
||||
sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=$(blkid -s UUID -o value "${install_path}p2"):cryptroot\"/" /etc/default/grub
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user