Initial commit
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 45s
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
||||
4
|
||||
1
|
7
main.sh
@ -9,10 +9,13 @@ echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
||||
VERSION="1.0"
|
||||
|
||||
# Clone Upstream
|
||||
cd ./pika-live-booster-hooks/
|
||||
wget https://git.pika-os.com/website/pika-branding/raw/branch/main/logos/pika-logo-text-dark-nv.png -O ./plymouth-theme-pika/usr/share/plymouth/themes/pika/watermark.png
|
||||
wget https://git.pika-os.com/website/pika-branding/raw/branch/main/logos/pika-simple-small-nv.png -O ./plymouth-theme-pika/usr/share/plymouth/themes/pika/bgrt-fallback.png
|
||||
cp -vf ./plymouth-theme-pika/usr/share/plymouth/themes/pika/watermark.png ./plymouth-theme-pika/usr/share/plymouth/pika-logo.png
|
||||
cd ./plymouth-theme-pika/
|
||||
|
||||
# Get build deps
|
||||
LOGNAME=root dh_make --createorig -y -l -p pika-live-booster-hooks_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
||||
LOGNAME=root dh_make --createorig -y -l -p plymouth-theme-pika_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
||||
apt-get build-dep ./ -y
|
||||
|
||||
# Build package
|
||||
|
@ -1,126 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Mount the proc kernel temp mount
|
||||
busybox mount -n -t proc proc /proc
|
||||
|
||||
# Check if bootloader wants the hook to be executed
|
||||
|
||||
BOOT_PARAM="$(busybox grep -o 'boot=[^ ]*' /proc/cmdline | busybox awk -F= '{print $2}')"
|
||||
|
||||
if [[ $BOOT_PARAM != "live" ]]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Check if quiet is used
|
||||
if [[ "$(busybox cat /proc/cmdline)" =~ (^|[[:space:]])quiet($|[[:space:]]) ]]; then
|
||||
QUIET_MODE=true
|
||||
else
|
||||
QUIET_MODE=false
|
||||
fi
|
||||
|
||||
ISO_LABEL_NAME_PARAM="$(busybox grep -o 'ISO_LABEL_NAME=[^ ]*' /proc/cmdline | busybox awk -F= '{print $2}')"
|
||||
VTOY_ISO_NAME_PARAM="$(busybox grep -o 'VTOY_ISO_NAME=[^ ]*' /proc/cmdline | busybox awk -F= '{print $2}')"
|
||||
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: boot=live detected in kernel cmdline, running LiveISO hooks...'
|
||||
fi
|
||||
### Create mounting dirs
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Creating mountpoints...'
|
||||
fi
|
||||
busybox mkdir -p /mnt/medium /mnt/filesystem /mnt/overlay /booster.root
|
||||
|
||||
# Try finding Appended partition among standard partition blocks.
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Searching for Live medium...'
|
||||
fi
|
||||
LIVE_MEDIA="$(busybox blkid | busybox grep "PikaOS 4" | busybox grep "iso9660" | busybox head -n1 | busybox awk -F: '{print $1}')"
|
||||
|
||||
if [ -z "$LIVE_MEDIA" ]
|
||||
then
|
||||
# Try getting appended partition from Ventoy ISO Partition
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Live medium could not be found among standard blocks.'
|
||||
fi
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Attempting Ventoy mapping hook.'
|
||||
fi
|
||||
# Get Ventoy ISO Partition ID
|
||||
VENTOY_DEVICE="$(busybox blkid | busybox grep "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')"
|
||||
# Keep retrying 10 times incase usb_storage has yet to pick up
|
||||
while [ -z "$VENTOY_DEVICE" ]
|
||||
do
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Ventoy Device not found retrying...'
|
||||
fi
|
||||
VENTOY_DEVICE="$(busybox blkid | busybox grep "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')"
|
||||
((c++)) && ((c==10)) && break
|
||||
busybox sleep 5
|
||||
done
|
||||
# Get filesystem if iso was found
|
||||
if [ ! -z "$VENTOY_DEVICE" ]
|
||||
then
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo "[PikaOS Booster Live Hook]: Ventoy device found as $VENTOY_DEVICE !"
|
||||
fi
|
||||
busybox mkdir -p /mnt/ventoy
|
||||
busybox mount -o ro "$VENTOY_DEVICE" /mnt/ventoy
|
||||
### Mount live medium
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Mounting Live medium...'
|
||||
fi
|
||||
busybox mount -o ro,loop /mnt/ventoy/$VTOY_ISO_NAME_PARAM /mnt/medium
|
||||
else
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Error: Live medium could not be found!'
|
||||
fi
|
||||
exit 32
|
||||
fi
|
||||
else
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo "[PikaOS Booster Live Hook]: Live medium found on $LIVE_MEDIA !"
|
||||
fi
|
||||
### Mount live medium
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Mounting Live medium...'
|
||||
fi
|
||||
busybox mount -o ro $LIVE_MEDIA /mnt/medium
|
||||
fi
|
||||
|
||||
### Create loop from squashfs
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Mounting Live medium squashfs image...'
|
||||
fi
|
||||
busybox mount -o loop,ro /mnt/medium/live/filesystem.squashfs /mnt/filesystem
|
||||
|
||||
### Mount tmpfs on ram
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Creating Ramfs...'
|
||||
fi
|
||||
busybox mount -t tmpfs -o mode=1777 overlay_tmpfs /mnt/overlay
|
||||
|
||||
### Create overlay dirs
|
||||
busybox mkdir -p /mnt/overlay/upper /mnt/overlay/work
|
||||
|
||||
### Create merged overlay
|
||||
if [ "$QUIET_MODE" = false ]
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Creating writable overlay Rootfs on ramfs...'
|
||||
fi
|
||||
busybox mount -t overlay overlay -o lowerdir=/mnt/filesystem:/mnt/medium,upperdir=/mnt/overlay/upper,workdir=/mnt/overlay/work /booster.root
|
@ -1,4 +1,4 @@
|
||||
pika-live-booster-hooks (1.0-101pika3) pika; urgency=medium
|
||||
plymouth-theme-pika (1.0-101pika1) pika; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: pika-live-booster-hooks
|
||||
Source: plymouth-theme-pika
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: ferreo <harderthanfire@gmail.com>
|
||||
@ -6,9 +6,10 @@ Standards-Version: 4.6.1
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: pika-live-booster-hooks
|
||||
Package: plymouth-theme-pika
|
||||
Architecture: linux-any
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
booster,
|
||||
Description: Booster hooks for PikaOS LiveISO.
|
||||
plymouth,
|
||||
plymouth-themes,
|
||||
Description: A theme designed for PikaOS that features a spinning egg.
|
6
plymouth-theme-pika/debian/postinst
Normal file
@ -0,0 +1,6 @@
|
||||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
plymouth-set-default-theme pika-bgrt
|
||||
update-initramfs -c -k all
|
@ -0,0 +1,84 @@
|
||||
[Plymouth Theme]
|
||||
Name[be]=PIKA-BGRT
|
||||
Name[cs]=PIKA-BGRT
|
||||
Name[da]=PIKA-BGRT
|
||||
Name[de]=PIKA-BGRT
|
||||
Name[eo]=PIKA-BGRT
|
||||
Name[es]=PIKA-BGRT
|
||||
Name[eu]=PIKA-BGRT
|
||||
Name[fr]=PIKA-BGRT
|
||||
Name[fur]=PIKA-BGRT
|
||||
Name[hr]=PIKA-BGRT
|
||||
Name[hu]=PIKA-BGRT
|
||||
Name[id]=PIKA-BGRT
|
||||
Name[it]=PIKA-BGRT
|
||||
Name[nl]=PIKA-BGRT
|
||||
Name[pa]=PIKA-BGRT
|
||||
Name[pl]=PIKA-BGRT
|
||||
Name[pt_BR]=PIKA-BGRT
|
||||
Name[ru]=PIKA-BGRT
|
||||
Name[sr]=PIKA-BGRT
|
||||
Name[sv]=PIKA-BGRT
|
||||
Name[uk]=PIKA-BGRT
|
||||
Name[zh_CN]=PIKA-BGRT
|
||||
Name[ms]=PIKA-BGRT
|
||||
Name[he]=PIKA-BGRT
|
||||
Name[fa]=PIKA-BGRT
|
||||
Name[fi]=PIKA-BGRT
|
||||
Name=PIKA-BGRT
|
||||
Description=PikaOS plymouth theme using the ACPI BGRT graphics as background
|
||||
ModuleName=two-step
|
||||
|
||||
[two-step]
|
||||
Font=Fira Sans SemiBold 12
|
||||
TitleFont=Fira Sans Book 30
|
||||
ImageDir=/usr/share/plymouth/themes/pika
|
||||
DialogHorizontalAlignment=.5
|
||||
DialogVerticalAlignment=.7
|
||||
TitleHorizontalAlignment=.5
|
||||
TitleVerticalAlignment=.382
|
||||
HorizontalAlignment=.5
|
||||
VerticalAlignment=.7
|
||||
WatermarkHorizontalAlignment=.5
|
||||
WatermarkVerticalAlignment=.96
|
||||
Transition=none
|
||||
TransitionDuration=0.0
|
||||
BackgroundStartColor=0x000000
|
||||
BackgroundEndColor=0x000000
|
||||
ProgressBarBackgroundColor=0x606060
|
||||
ProgressBarForegroundColor=0xffffff
|
||||
DialogClearsFirmwareBackground=false
|
||||
MessageBelowAnimation=true
|
||||
|
||||
[boot-up]
|
||||
UseEndAnimation=false
|
||||
UseFirmwareBackground=true
|
||||
|
||||
[shutdown]
|
||||
UseEndAnimation=false
|
||||
UseFirmwareBackground=true
|
||||
|
||||
[reboot]
|
||||
UseEndAnimation=false
|
||||
UseFirmwareBackground=true
|
||||
|
||||
[updates]
|
||||
SuppressMessages=true
|
||||
ProgressBarShowPercentComplete=true
|
||||
UseProgressBar=true
|
||||
Title=Installing Updates...
|
||||
SubTitle=Do not turn off your computer
|
||||
|
||||
[system-upgrade]
|
||||
SuppressMessages=true
|
||||
ProgressBarShowPercentComplete=true
|
||||
UseProgressBar=true
|
||||
Title=Upgrading System...
|
||||
SubTitle=Do not turn off your computer
|
||||
|
||||
[firmware-upgrade]
|
||||
SuppressMessages=true
|
||||
ProgressBarShowPercentComplete=true
|
||||
UseProgressBar=true
|
||||
Title=Upgrading Firmware...
|
||||
SubTitle=Do not turn off your computer
|
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 855 B |
After Width: | Height: | Size: 877 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 788 B |
After Width: | Height: | Size: 798 B |
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 816 B |
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 855 B |
After Width: | Height: | Size: 877 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 788 B |
After Width: | Height: | Size: 798 B |
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 816 B |
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 855 B |
After Width: | Height: | Size: 877 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 788 B |
After Width: | Height: | Size: 798 B |
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 816 B |
BIN
plymouth-theme-pika/usr/share/plymouth/themes/pika/bullet.png
Normal file
After Width: | Height: | Size: 616 B |
BIN
plymouth-theme-pika/usr/share/plymouth/themes/pika/capslock.png
Normal file
After Width: | Height: | Size: 960 B |
BIN
plymouth-theme-pika/usr/share/plymouth/themes/pika/entry.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
plymouth-theme-pika/usr/share/plymouth/themes/pika/keyboard.png
Normal file
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 26 KiB |
BIN
plymouth-theme-pika/usr/share/plymouth/themes/pika/lock.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,66 @@
|
||||
[Plymouth Theme]
|
||||
Name[de]=Pika
|
||||
Name[es]=Pika
|
||||
Name[eu]=Pika
|
||||
Name[id]=Pika
|
||||
Name[it]=Pika
|
||||
Name[nl]=Pika
|
||||
Name[pl]=Pika
|
||||
Name[pt_BR]=Pika
|
||||
Name[sv]=Pika
|
||||
Name[zh_CN]=Pika
|
||||
Name[ms]=Pika
|
||||
Name[fi]=Pika
|
||||
Name=Pika
|
||||
Description=A theme designed for PikaOS that features a spinning egg.
|
||||
ModuleName=two-step
|
||||
|
||||
[two-step]
|
||||
Font=Cantarell 12
|
||||
TitleFont=Cantarell Light 30
|
||||
ImageDir=/usr/share/plymouth/themes/pika
|
||||
DialogHorizontalAlignment=.5
|
||||
DialogVerticalAlignment=.382
|
||||
TitleHorizontalAlignment=.5
|
||||
TitleVerticalAlignment=.382
|
||||
HorizontalAlignment=.5
|
||||
VerticalAlignment=.7
|
||||
WatermarkHorizontalAlignment=.5
|
||||
WatermarkVerticalAlignment=.96
|
||||
Transition=none
|
||||
TransitionDuration=0.0
|
||||
BackgroundStartColor=0x000000
|
||||
BackgroundEndColor=0x000000
|
||||
ProgressBarBackgroundColor=0x606060
|
||||
ProgressBarForegroundColor=0xffffff
|
||||
MessageBelowAnimation=true
|
||||
|
||||
[boot-up]
|
||||
UseEndAnimation=false
|
||||
|
||||
[shutdown]
|
||||
UseEndAnimation=false
|
||||
|
||||
[reboot]
|
||||
UseEndAnimation=false
|
||||
|
||||
[updates]
|
||||
SuppressMessages=true
|
||||
ProgressBarShowPercentComplete=true
|
||||
UseProgressBar=true
|
||||
Title=Installing Updates...
|
||||
SubTitle=Do not turn off your computer
|
||||
|
||||
[system-upgrade]
|
||||
SuppressMessages=true
|
||||
ProgressBarShowPercentComplete=true
|
||||
UseProgressBar=true
|
||||
Title=Upgrading System...
|
||||
SubTitle=Do not turn off your computer
|
||||
|
||||
[firmware-upgrade]
|
||||
SuppressMessages=true
|
||||
ProgressBarShowPercentComplete=true
|
||||
UseProgressBar=true
|
||||
Title=Upgrading Firmware...
|
||||
SubTitle=Do not turn off your computer
|
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 855 B |
After Width: | Height: | Size: 877 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 788 B |
After Width: | Height: | Size: 798 B |
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 816 B |
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 855 B |
After Width: | Height: | Size: 877 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 788 B |
After Width: | Height: | Size: 798 B |
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 816 B |
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 855 B |
After Width: | Height: | Size: 90 KiB |