heads/initrd/etc
Jonathon Hall a6228b9843
functions: Improve detect_boot_device to silence exFAT errors
When testing a possible boot device, detect its partition type and
skip grub, LUKS, and LVM partitions.  These aren't mountable as /boot,
this silences spurious exFAT errors.

In detect_boot_device, skip testing CONFIG_BOOT_DEV a second time if it
is found as a block device.  This avoids doubling any errors shown from
checking this device, no sense trying it twice.

Refactor some logic to avoid duplication - extract
device_has_partitions and use it in detect_boot_device, extract
mount_possible_boot_device and use it instead of duplicating the logic.

Move find_lvm_vg_name() to /etc/functions.

Avoid mixing up similarly-named devices like 'nvme0n1'/'nvme0n10' or
'sda'/'sdaa' - it's probably unlikely that many devices will appear,
but looking for partitions in '/sys/class/block/<device>/' instead of
'/dev/' would avoid any collisions.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
2024-02-02 17:14:33 -05:00
..
distro qubes release signing keys: move qubes-4.key to qubes-4.1.key, add qubes-4.2.key 2023-10-18 13:37:22 -04:00
ash_functions Allow laptops to include optional USB keyboard support 2024-01-10 15:38:06 -05:00
fstab fstab, init: Remove securityfs mount 2023-03-13 14:11:02 -04:00
functions functions: Improve detect_boot_device to silence exFAT errors 2024-02-02 17:14:33 -05:00
group Build the Heads/NERF firmware for the Dell R630 server. 2017-09-20 10:29:14 -04:00
gui_functions all scripts: replace TRACE manual strings with dynamic tracing by bash debug 2024-02-01 15:48:27 -05:00
hosts localhost should be defined 2018-02-09 12:05:49 -05:00
luks-functions all scripts: replace TRACE manual strings with dynamic tracing by bash debug 2024-02-01 15:48:27 -05:00
mke2fs.conf Add external/usb disk encryption (adds exfatprogs and e2fsprogs) 2023-08-28 16:23:48 -04:00
motd restore /etc/motd 2018-03-08 01:14:41 -05:00
mtab add /etc/fstab and /etc/mtab to initrd image 2017-04-10 12:59:24 -04:00
passwd recovery, passwd: Use /bin/sh for interactive shells 2023-03-08 12:45:51 -05:00
shells Build the Heads/NERF firmware for the Dell R630 server. 2017-09-20 10:29:14 -04:00