iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix chboot, add partition options
[automated-distro-installer]
/
chboot
diff --git
a/chboot
b/chboot
index 426fd9a2cef87b83d8fbf22fc6fc146cd7223b38..12befb8a13ab80d68e7f950d12af22e3f24ffb7c 100755
(executable)
--- a/
chboot
+++ b/
chboot
@@
-39,6
+39,9
@@
EOF
exit $1
}
exit $1
}
+
+grub_extn=4
+
###### begin command line parsing #####
reboot=true
temp=$(getopt -l opt o "$@") || usage 1
###### begin command line parsing #####
reboot=true
temp=$(getopt -l opt o "$@") || usage 1
@@
-90,6
+93,12
@@
boot_disk=${boot_dev%%[0-9]*}
# https://www.gnu.org/software/grub/manual/html_node/Device-map.html
e grub-bios-setup -d $mount_point/grub/i386-pc -s -m $mount_point/grub/device.map $boot_disk
# https://www.gnu.org/software/grub/manual/html_node/Device-map.html
e grub-bios-setup -d $mount_point/grub/i386-pc -s -m $mount_point/grub/device.map $boot_disk
+# todo, mount_point needs subvolid=0
+
+e umount $mount_point
+
+e mount $boot_disk$grub_extn $mount_point
+e grub-editenv $mount_point/grubenv set default_subvol=/boot_$distro
e umount $mount_point
e rmdir $mount_point
e umount $mount_point
e rmdir $mount_point