Skip to content

Commit

Permalink
fix: fix udev for version 'rp1+deb11u2' (#226)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
KwadFan committed May 23, 2023
1 parent 726239c commit b0343d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions patches/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ _**DO NOT RUN THIS ON LATER VERSIONS!!!**_

### Usage:

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

This will ask you for sudo password!

In most cases a reboot is required!

## udev-fix.sh

This is intended to patch udev rules which has a Bug in udev package (version: 247.3-7+deb11u2).
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).
Which does not create `/dev/serial/by-id` symlinks for your MCU.\
For further details see:

Expand Down
2 changes: 1 addition & 1 deletion patches/udev-fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ print_footer(){
# Patch Funcs

patch_udev(){
if [[ -n "${UDEV_PKG_VERSION}" ]] && [[ "${UDEV_PKG_VERSION}" = "247.3-7+deb11u2" ]]; then
if [[ -n "${UDEV_PKG_VERSION}" ]] && [[ "${UDEV_PKG_VERSION}" =~ "deb11u2" ]]; then
echo_red "'udev' version: ${UDEV_PKG_VERSION}, is affected by bug ..."
echo_green "Install patched udev rule from systemd git repository ..."
curl -sSL "${UDEV_FIX_RAW_RULE_FILE}" > "${UDEV_FIX_TMP_FILE}"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/udev_fix/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi
# Step 2: Fix broken udev (remove after debian releases patch)
UDEV_PKG_VERSION="$(dpkg-query -s udev | grep "Version" | sed 's/Version\: //')"

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

0 comments on commit b0343d5

Please sign in to comment.