Skip to content

Commit b0343d5

Browse files
authored
fix: fix udev for version 'rp1+deb11u2' (#226)
This is needed to also patch if version is from raspberry which is named '247.3-7+rpi1+deb11u2' Signed-off-by: Stephan Wendel <me@stephanwe.de>
1 parent 726239c commit b0343d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

patches/Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ _**DO NOT RUN THIS ON LATER VERSIONS!!!**_
1010

1111
### Usage:
1212

13-
`curl -sSL https://raw.githubusercontent.com/mainsail-crew/MainsailOS/develop/patches/patch.sh | bash`
13+
`curl -sSL https://raw.githubusercontent.com/mainsail-crew/MainsailOS/develop/patches/patch101.sh | bash`
1414

1515
This will ask you for sudo password!
1616

1717
In most cases a reboot is required!
1818

1919
## udev-fix.sh
2020

21-
This is intended to patch udev rules which has a Bug in udev package (version: 247.3-7+deb11u2).
21+
This is intended to patch udev rules which has a Bug in udev package (version: 247.3-7+deb11u2 or 247.3-7+rpi1+deb11u2).
2222
Which does not create `/dev/serial/by-id` symlinks for your MCU.\
2323
For further details see:
2424

patches/udev-fix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ print_footer(){
7474
# Patch Funcs
7575

7676
patch_udev(){
77-
if [[ -n "${UDEV_PKG_VERSION}" ]] && [[ "${UDEV_PKG_VERSION}" = "247.3-7+deb11u2" ]]; then
77+
if [[ -n "${UDEV_PKG_VERSION}" ]] && [[ "${UDEV_PKG_VERSION}" =~ "deb11u2" ]]; then
7878
echo_red "'udev' version: ${UDEV_PKG_VERSION}, is affected by bug ..."
7979
echo_green "Install patched udev rule from systemd git repository ..."
8080
curl -sSL "${UDEV_FIX_RAW_RULE_FILE}" > "${UDEV_FIX_TMP_FILE}"

src/modules/udev_fix/start_chroot_script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838
# Step 2: Fix broken udev (remove after debian releases patch)
3939
UDEV_PKG_VERSION="$(dpkg-query -s udev | grep "Version" | sed 's/Version\: //')"
4040

41-
if [[ -n "${UDEV_PKG_VERSION}" ]] && [[ "${UDEV_PKG_VERSION}" = "247.3-7+deb11u2" ]]; then
41+
if [[ -n "${UDEV_PKG_VERSION}" ]] && [[ "${UDEV_PKG_VERSION}" =~ "deb11u2" ]]; then
4242
echo_red "'udev' version: ${UDEV_PKG_VERSION}, is affected by bug ..."
4343
echo_green "Install patched udev rule from systemd git repository ..."
4444
curl -sSL "${UDEV_FIX_RAW_RULE_FILE}" > "${UDEV_FIX_OUTPUT_FILE}"

0 commit comments

Comments
 (0)