Skip to content

Commit

Permalink
fix: fixes build error in base module
Browse files Browse the repository at this point in the history
This fixes #176

Location, linewise has changed in cancel-rename script.

Uses now a generic method to patch

Signed-off-by: Stephan Wendel <me@stephanwe.de>
  • Loading branch information
KwadFan committed Sep 9, 2022
1 parent f812d6b commit 96c9980
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.

This file was deleted.

12 changes: 7 additions & 5 deletions src/modules/base/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ if [ "${BASE_ADD_USER}" == "yes" ]; then

# Patch cancel-rename due to https://github.com/RPi-Distro/userconf-pi/issues/2
# And https://github.com/guysoft/CustomPiOS/issues/163
unpack /filesystem/patches /patches root
pushd /usr/bin
patch -p1 < /patches/fix-163-autologin-console.patch
popd
rm -rf /patches
# Since the new version has changed an lead to Error described in
# https://github.com/guysoft/CustomPiOS/issues/176
# use a more generic way to patch the script.
if [[ -f "/usr/bin/cancel-rename" ]]; then
sed -i 's|do_boot_behaviour B2|do_boot_behaviour B1|g' /usr/bin/cancel-rename
fi

else
echo_red "First user name and password not set! [FAILED]"
exit 1
Expand Down

0 comments on commit 96c9980

Please sign in to comment.