mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
remove -R flag from /mnt/root chmod, fix grub sed from 7797b19
grub's sed change in 7797b19 caused the kernel parameters to be enclosed in 3 quotes instead of 2. this fixes it (first delimiter has to be escaped if not /; see GNU sed manual section 4.3)
This commit is contained in:
parent
fd49d164de
commit
e6daa6f659
1 changed files with 2 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ mkdir -p /mnt/{home,root,srv,.snapshots,var/{log,cache/pacman/pkg},boot}
|
||||||
for subvol in "${subvols[@]:2}"; do # ":2" excludes first two subvols (@snapshots and @var_pkgs) from loop
|
for subvol in "${subvols[@]:2}"; do # ":2" excludes first two subvols (@snapshots and @var_pkgs) from loop
|
||||||
mount -o "$mountopts",subvol=@"$subvol" "$BTRFS" /mnt/"$(sed 's,_,/,g' <<< "$subvol")"
|
mount -o "$mountopts",subvol=@"$subvol" "$BTRFS" /mnt/"$(sed 's,_,/,g' <<< "$subvol")"
|
||||||
done
|
done
|
||||||
chmod -R 750 /mnt/root
|
chmod 750 /mnt/root
|
||||||
mount -o $mountopts,subvol=@snapshots $BTRFS /mnt/.snapshots
|
mount -o $mountopts,subvol=@snapshots $BTRFS /mnt/.snapshots
|
||||||
mount -o $mountopts,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg
|
mount -o $mountopts,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg
|
||||||
chattr +C /mnt/var/log
|
chattr +C /mnt/var/log
|
||||||
|
|
@ -375,7 +375,7 @@ EOF
|
||||||
# Setting up LUKS2 encryption in grub.
|
# Setting up LUKS2 encryption in grub.
|
||||||
print "Setting up grub config."
|
print "Setting up grub config."
|
||||||
UUID=$(blkid -s UUID -o value $CRYPTROOT)
|
UUID=$(blkid -s UUID -o value $CRYPTROOT)
|
||||||
sed -i "s,^GRUB_CMDLINE_LINUX=\",&rd.luks.name=$UUID=cryptroot root=$BTRFS\",g" /mnt/etc/default/grub
|
sed -i "\,^GRUB_CMDLINE_LINUX=\"\",s,\",&rd.luks.name=$UUID=cryptroot root=$BTRFS," /mnt/etc/default/grub
|
||||||
|
|
||||||
# Configuring the system.
|
# Configuring the system.
|
||||||
arch-chroot /mnt /bin/bash -e <<EOF
|
arch-chroot /mnt /bin/bash -e <<EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue