OSDN Git Service

DONT INSTALL GRUB TO A PARTITION HOLY COW IM DUMB!!!
authorpaperbenni <paperbenni@gmail.com>
Wed, 13 May 2020 20:24:01 +0000 (22:24 +0200)
committerpaperbenni <paperbenni@gmail.com>
Wed, 13 May 2020 20:24:01 +0000 (22:24 +0200)
bootloader/install.sh

index 9f057d5..dac1292 100755 (executable)
@@ -1,8 +1,5 @@
 #!/bin/bash
 echo "installing grub for legacy bios"
 DISK="$(cat /root/instantARCH/config/disk)"
-DISK1=$(fdisk -l | grep "^${DISK}" | grep -o '^[^ ]*' |
-    head -1 | grep -o '[^ ]*')
 
-echo "installing grub to $DISK1"
-grub-install --target=i386-pc "${DISK1}" --root /mnt
+grub-install --target=i386-pc "${DISK}" --root /mnt