OSDN Git Service
(root)
/
instantos
/
instantARCH.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e91a584
)
DONT INSTALL GRUB TO A PARTITION HOLY COW IM DUMB!!!
author
paperbenni
<paperbenni@gmail.com>
Wed, 13 May 2020 20:24:01 +0000
(22:24 +0200)
committer
paperbenni
<paperbenni@gmail.com>
Wed, 13 May 2020 20:24:01 +0000
(22:24 +0200)
bootloader/install.sh
patch
|
blob
|
history
diff --git
a/bootloader/install.sh
b/bootloader/install.sh
index
9f057d5
..
dac1292
100755
(executable)
--- a/
bootloader/install.sh
+++ b/
bootloader/install.sh
@@
-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