Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
initramfs-tools (0.142-0deepin10) unstable; urgency=medium

* resolve device by decreasing priority

-- Liang Bo <[email protected]> Wed, 05 Nov 2025 14:15:41 +0800

initramfs-tools (0.142-0deepin9) unstable; urgency=medium

* Optimize support for fix-init
Expand Down
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ uniontech-fix-mul-update-initramfs-process.patch
uniontech-wait_udev_in_s4.patch
uniontech-support-fix-init.patch
uniontech-check-init.patch
uniontech-resolve-device-by-decreasing-priority.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/scripts/functions b/scripts/functions
index ae11b96..c94dc52 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -431,7 +431,7 @@ resolve_device() {

case "$DEV" in
LABEL=* | UUID=* | PARTLABEL=* | PARTUUID=*)
- DEV="$(blkid -l -t "$DEV" -o device)" || return 1
+ DEV="$(blkid -t "$DEV" -o device | tail -n 1)" || return 1
;;
esac
[ -e "$DEV" ] && echo "$DEV"
Loading