Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scripts/halium
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,18 @@ mountroot() {
done
fi

# If systempart=slotselect:<partlabel> is provided, try to lookup
# existing partlabels and find the right A/B system partition
if [ ! -z "$ab_slot_suffix" ] ; then
case "$_syspart" in
slotselect:*)
partname=$(echo "$_syspart" | awk -F":" '{ print $2 }')
part=$(find /dev -name "$partname$ab_slot_suffix" | tail -1)
_syspart=$(readlink -f $part)
;;
esac
fi

identify_file_layout

# If both $imagefile and $_syspart are set, something is wrong. The strange
Expand Down