-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: moves firstboot fix to seperate module
To avoid conflicts with non rpi images, moved to seperate modules Can be removed if solved due merge of RPi-Distro/raspberrypi-sys-mods#71 Signed-off-by: Stephan Wendel <me@stephanwe.de>
- Loading branch information
Showing
5 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
# Shebang for better file detection | ||
#### rpi_firstb_fix module | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <me@stephanwe.de> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/MainsailOS | ||
#### | ||
#### This File is distributed under GPLv3 | ||
#### | ||
|
||
# Intentionally left blank | ||
# See start_chroot_script for information |
2 changes: 2 additions & 0 deletions
2
...ot/usr/lib/raspberrypi-sys-mods/firstboot → ...ot/usr/lib/raspberrypi-sys-mods/firstboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
# shellcheck disable=all | ||
|
||
|
||
reboot_pi () { | ||
umount /boot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
#### rpi_firstb_fix module | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <me@stephanwe.de> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/MainsailOS | ||
#### | ||
#### This File is distributed under GPLv3 | ||
#### | ||
|
||
#### Description: | ||
#### This is intended to patch behaviour of raspberry's firstboot script. | ||
#### Related to https://github.com/mainsail-crew/MainsailOS/issues/213 | ||
|
||
# shellcheck enable=require-variable-braces | ||
## Source error handling, leave this in place | ||
set -Ee | ||
|
||
# Set DEBIAN_FRONTEND to noninteractive | ||
if [[ "${DEBIAN_FRONTEND}" != "noninteractive" ]]; then | ||
export DEBIAN_FRONTEND=noninteractive | ||
fi | ||
|
||
## Source CustomPIOS common.sh | ||
# shellcheck disable=SC1091 | ||
source /common.sh | ||
install_cleanup_trap | ||
|
||
## Step 1: Patch firstboot issue | ||
echo_green "Patch firstboot issue..." | ||
unpack filesystem/root / | ||
## END Step 1 |