Skip to content

Commit

Permalink
generate fstab with UUIDs
Browse files Browse the repository at this point in the history
Vagrant has experimental support for adding SATA disks. Although this
box does not support that yet (at least for the virtualbox provider,
since no AHCI storage controller with the name "SATA Controller" is
included), it is possible to add another disk. This causes a boot
failure in some circumstances because although the root is set to a UUID
in the kernel cmdline, systemd's fsck still looks for /dev/sda as stated
in /etc/fstab.
  • Loading branch information
rossmeier authored and shibumi committed May 29, 2020
1 parent a4731dc commit 6e2a8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ else
fi
pacstrap -M /mnt base linux grub openssh sudo polkit haveged netctl python reflector
swapon "${device}1"
genfstab -p /mnt >>/mnt/etc/fstab
genfstab -pU /mnt >>/mnt/etc/fstab
swapoff "${device}1"

arch-chroot /mnt /usr/bin/sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist
Expand Down

0 comments on commit 6e2a8e0

Please sign in to comment.