forked from Vanilla-Kattleya/plasma-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrades FsGuard to be compatible with core-image
- Loading branch information
Showing
4 changed files
with
42 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,10 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: vanilla-os/[email protected].0 | ||
- uses: vanilla-os/[email protected].4 | ||
with: | ||
recipe: 'recipe.yml' | ||
plugins: 'Vanilla-OS/vib-fsguard:v1.4' | ||
plugins: 'Vanilla-OS/vib-fsguard:v1.5.3' | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
#!/bin/bash | ||
|
||
function failed() { | ||
/.system/usr/bin/plymouth quit | ||
local squashfs="/.system/boot/fswarn.squash" | ||
mount -t tmpfs -o rw,size=1G tmpfs /tmp | ||
local tmp="/tmp" | ||
chmod 0755 "$tmp" | ||
unsquashfs -q -L -follow -d /tmp "$squashfs" | ||
mount --rbind /dev "$tmp/dev" | ||
|
||
local resolution=$(chroot "$tmp" /bin/bash -c '/usr/sbin/fbset | /bin/grep "mode " | /bin/sed "s/\"//g" | /bin/sed "s/-0//g" | /usr/bin/gawk '\''BEGIN{FS=" "}; {print $2}'\''') | ||
clear | ||
tput cnorm | ||
echo -e "\033[1;0H" | ||
chroot "$tmp" /bin/bash -c "convert -resize $resolution -background black -gravity center -extent $resolution /verification_failed.png bgra:/dev/fb0" | ||
echo -e "\033[999;0H" | ||
read -sn1 input | ||
if [[ "$input" == "c" ]]; then | ||
echo -e "\033[1;0H" | ||
chroot "$tmp" /bin/bash -c "convert -resize $resolution -background black -gravity center -extent $resolution /continue_confirm.png bgra:/dev/fb0" | ||
echo -e "\033[999;0H" | ||
read -sn1 input | ||
if [[ "$input" == "y" ]]; then | ||
return | ||
else | ||
poweroff -f | ||
fi | ||
else | ||
poweroff -f | ||
fi | ||
} | ||
|
||
/usr/sbin/FsGuard verify "/.system/FsGuard/filelist" | ||
if [[ $? -ne 0 ]]; then | ||
failed | ||
fi |
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