Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bmwiedemann:reproducible:distribution:ring1
os-prober
os-prober-fix-btrfs-boot-without-subvol.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File os-prober-fix-btrfs-boot-without-subvol.patch of Package os-prober
Index: os-prober/linux-boot-prober =================================================================== --- os-prober.orig/linux-boot-prober +++ os-prober/linux-boot-prober @@ -90,15 +90,9 @@ if [ "$type" = btrfs ]; then # /boot is part of the root bootpart="$partition" bootsv="$subvol" - elif echo "$bootmnt" | cut -d ' ' -f 3 | grep -q "btrfs"; then + elif echo "$bootmnt" | cut -d ' ' -f 3 | grep -q "btrfs" && echo "$bootmnt" | cut -d ' ' -f 4 | grep -q "subvol="; then # separate btrfs /boot subvolume bootsv=$(echo "$bootmnt" | cut -d ' ' -f 4 | sed -n 's!\(^subvol=\|.*,subvol=\)\([^,]\+\).*!\2!p') - if [ -z "$bootsv" ]; then - warn "no subvolume in entry: $bootmnt" - umount "$tmpmnt" 2>/dev/null - rmdir "$tmpmnt" 2>/dev/null - exit 1 - fi bootuuid=$(echo "$bootmnt" | cut -d ' ' -f 1 | sed -n 's/UUID=\("\(.*\)"\|\(.*\)\)/\2\3/p') debug "mounting btrfs $tmpmnt/boot UUID=$bootuuid subvol=$bootsv" bindfrom=$(check_btrfs_mounted $bootsv $bootuuid)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor