summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@developercraft.com>2026-04-01 02:42:50 +0100
committerBlake Romero <blake@developercraft.com>2026-04-01 02:42:50 +0100
commitf69e5f5dcaedc5ef09f5283c4258e95903d64666 (patch)
tree6d28971e7530a2cd74695c683d7ea80e6faa12ab
parent5a7d493ff8f1593560dd63a8b271eff04a4c924c (diff)
Remove duel-boot option
-rw-r--r--README.org1
-rw-r--r--config7
-rwxr-xr-xinstall.sh21
3 files changed, 3 insertions, 26 deletions
diff --git a/README.org b/README.org
index fc00c00..02a81d9 100644
--- a/README.org
+++ b/README.org
@@ -46,7 +46,6 @@ Configuration options are available in the =config= file.
| =root= | /dev/sda2 | will use BTRFS with dedicated subvolumes |
| =swap_size= | auto | can be set explicitly, e.g. =8G= or =16G= |
| =boot_size= | 512M | set a large value if duel booting, e.g. =1G= |
-| =duel_boot= | true | =boot= must be already setup & separate from =drive= |
| =timezone= | Europe/London | timezones are defined in =/usr/share/zoneinfo/= |
| =locale= | en_GB | locales are defined in =/etc/locale.gen= |
| =user= | blake | the main user of the system |
diff --git a/config b/config
index 7ce261f..6e4170a 100644
--- a/config
+++ b/config
@@ -17,13 +17,6 @@ swap_size=auto
# Boot size (e.g: 256M, 512M, 1G)
boot_size=1G
-# Duel-boot (i.e. a shared BOOT partition is used)
-# Caution:
-# - DRIVE must be separate from BOOT as DRIVE will be wiped/formatted
-# - BOOT will NOT be formatted but used to install linux & bootloader
-# - BOOT partition must already be setup, e.g. partitioned/formatted
-duel_boot=false
-
# System
user=blake
diff --git a/install.sh b/install.sh
index 3d661e1..e428663 100755
--- a/install.sh
+++ b/install.sh
@@ -106,16 +106,8 @@ read -rp "Type YES (in uppercase letters) to begin installation: " input
# Wipe file-system
wipefs -a "${drive}"
-# Create partitions
-if [[ $duel_boot == true ]]; then
- # create root partition
- printf ',+,L\n' \
- | sfdisk -qf -X gpt ${drive}
-else
- # create UEFI boot & root partition
- printf ',%s,U,*\n,+,L\n' "${boot_size}" \
- | sfdisk -qf -X gpt ${drive}
-fi
+# Create UEFI boot & root partition
+printf ',%s,U,*\n,+,L\n' "${boot_size}" | sfdisk -qf -X gpt ${drive}
# Encryption setup
if [[ $encrypt == true ]]; then
@@ -135,9 +127,7 @@ if [[ $encrypt == true ]]; then
fi
# Make BOOT filesystem
-if [[ $duel_boot == false ]]; then
- mkfs.fat -n BOOT -F 32 "${boot}"
-fi
+mkfs.fat -n BOOT -F 32 "${boot}"
# Make BTRFS ROOT filesystem
mkfs.btrfs -qfL ROOT "${root}"
@@ -402,11 +392,6 @@ grub_cmds="quiet loglevel=3 net.iframes=0 splash"
sed "s/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"$grub_cmds $devices\"/" \
-i /mnt/etc/default/grub
-# Enable os-prober to detect other operating systems
-if [[ $duel_boot == true ]]; then
- echo "GRUB_DISABLE_OS_PROBER=false" >> /mnt/etc/default/grub
-fi
-
# Install grub bootloader
grub_options="--target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB"
artix-chroot /mnt bash -c "grub-install ${grub_options}"