Skip to content

Commit 47c5a11

Browse files
xinpeng wangZeno-sole
authored andcommitted
Fix: not wait udev to improve boot performance
Bug: 310023
1 parent 7e2d6e3 commit 47c5a11

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
initramfs-tools (0.142-0deepin7) unstable; urgency=medium
2+
3+
* not wait udev to improve boot performance.
4+
5+
-- xinpeng.wang <wangxinpeng@uniontech.com> Wed, 28 May 2025 14:30:46 +0800
6+
17
initramfs-tools (0.142-0deepin6) unstable; urgency=medium
28

39
* uos does not allow modifying init without turning on grub

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ uniontech-fix-mul-update-initramfs-process.patch
55
uniontech-wait_udev_in_s4.patch
66
uniontech-support-fix-init.patch
77
uniontech-check-init.patch
8+
uniontech-not-wait-udev.patch
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Index: deepin-initramfs-tools/scripts/functions
2+
===================================================================
3+
--- deepin-initramfs-tools.orig/scripts/functions 2025-05-28 14:34:35.000000000 +0800
4+
+++ deepin-initramfs-tools/scripts/functions 2025-05-28 14:35:11.267074420 +0800
5+
@@ -144,7 +144,8 @@
6+
continue
7+
fi
8+
# shellcheck disable=SC2086
9+
- /sbin/modprobe $m
10+
+ # add & to improve boot performance
11+
+ /sbin/modprobe $m &
12+
done < /conf/modules
13+
fi
14+
}
15+
@@ -393,8 +394,10 @@
16+
# Wait for queued kernel/udev events
17+
wait_for_udev()
18+
{
19+
- command -v udevadm >/dev/null 2>&1 || return 0
20+
- udevadm settle ${1:+--timeout=$1}
21+
+ # Not wait for udev to improve boot performance
22+
+ return 0
23+
+ # command -v udevadm >/dev/null 2>&1 || return 0
24+
+ # udevadm settle ${1:+--timeout=$1}
25+
}
26+
27+
# Find a specific fstab entry

0 commit comments

Comments
 (0)