Skip to content

Commit

Permalink
Clean up post-simplification bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
MTecknology committed Apr 30, 2024
1 parent 9a62958 commit 0bd68b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions iso/debian12/preseed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
##


# Collect and store information from user
d-i partman/early_command string \
sh /cdrom/debconf_early

# Copy some things before running bootstrap
d-i preseed/late_command string \
lvm lvremove sys/scratch --yes \
Expand All @@ -28,10 +24,15 @@ d-i preseed/late_command string \
# Finicky bits
##

# Use nvme0n1 if available else assume sda
d-i partman/late_command string \
if [ -e /dev/nvme0n1 ]; then disk=/dev/nvme0n1; else disk=/dev/sda; fi; \
debconf-set partman-auto/disk "$disk"; echo "Disk Selected: $disk"
# Collect information from user using debconf template
# Use nvme0n1 if available, else vda, else assume sda
d-i partman/early_command string \
sh /cdrom/debconf_early \
&& if [ -e /dev/nvme0n1 ]; then disk=/dev/nvme0n1; \
elif [ -e /dev/vda ]; then disk=/dev/vda; \
else disk=/dev/sda; fi \
&& debconf-set partman-auto/disk "$disk" \
&& dd if=/dev/zero of="$disk" count=1024 count=2


##
Expand Down
4 changes: 2 additions & 2 deletions iso/debian12/preseed_test.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
153c153
154c154
< d-i netcfg/dhcp_options select Configure network manually
---
> #d-i netcfg/dhcp_options select Configure network manually
227c227
228c228
< #d-i finish-install/reboot_in_progress note
---
> d-i finish-install/reboot_in_progress note

0 comments on commit 0bd68b6

Please sign in to comment.