Remove hard-coded HDD

This commit is contained in:
maride 2017-08-06 00:24:58 +02:00
parent 8bcaf5dae4
commit 140aaa0145

View File

@ -19,7 +19,7 @@ echo $hostname > /mnt/etc/hostname
echo "~> Configuring 'grub'"
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch_GRUB
echo "GRUB_CMDLINE_LINUX='cryptdevice=UUID=`blkid -o value /dev/sda2 | head -n 1`'" > /mnt/etc/default/grub
echo "GRUB_CMDLINE_LINUX='cryptdevice=UUID=`blkid -o value ${blockdevice}2 | head -n 1`'" > /mnt/etc/default/grub
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
echo "~> Patching mkinitcpio.conf for encryption magic"