浏览代码

fix root uuid

Noah Vogt 1 年之前
父节点
当前提交
9c56a673d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      chroot.sh

+ 1 - 1
chroot.sh

@@ -28,7 +28,7 @@ test -d /efi/EFI || error_exit "Error: EFI partition could not be mounted correc
 sed -i 's/block filesystems/block encrypt filesystems/' /etc/mkinitcpio.conf
 mkinitcpio -p linux
 
-root_uuid="$(grep UUID /etc/fstab | sed 's/^UUID=//; s/\s\/.*$//')"
+root_uuid="$(grep ext4 /etc/fstab | sed 's/^UUID=//; s/\s\/.*$//')"
 
 echo "BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=$root_uuid rw cryptdevice=/dev/sda2:cryptroot loglevel=0 quiet udev.log_level=3" > /etc/kernel/cmdline
 chmod +w /etc/kernel/cmdline