initial commit
Some checks failed
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 38s
Some checks failed
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 38s
This commit is contained in:
parent
53dbced29e
commit
47e537a33e
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
|||||||
6
|
1
|
||||||
|
4
main.sh
4
main.sh
@ -9,10 +9,10 @@ echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|||||||
VERSION="1.0"
|
VERSION="1.0"
|
||||||
|
|
||||||
# Clone Upstream
|
# Clone Upstream
|
||||||
cd ./pika-refind-btrfs-hooks/
|
cd ./pika-live-booster-hooks/
|
||||||
|
|
||||||
# Get build deps
|
# Get build deps
|
||||||
LOGNAME=root dh_make --createorig -y -l -p pika-refind-btrfs-hooks_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
LOGNAME=root dh_make --createorig -y -l -p pika-live-booster-hooks_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
||||||
apt-get build-dep ./ -y
|
apt-get build-dep ./ -y
|
||||||
|
|
||||||
# Build package
|
# Build package
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Source: pika-refind-btrfs-hooks
|
Source: pika-live-booster-hooks
|
||||||
Section: admin
|
Section: admin
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: ferreo <harderthanfire@gmail.com>
|
Maintainer: ferreo <harderthanfire@gmail.com>
|
||||||
@ -6,15 +6,9 @@ Standards-Version: 4.6.1
|
|||||||
Build-Depends: debhelper-compat (= 13)
|
Build-Depends: debhelper-compat (= 13)
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
|
|
||||||
Package: pika-refind-btrfs-hooks
|
Package: pika-live-booster-hooks
|
||||||
Architecture: linux-any
|
Architecture: linux-any
|
||||||
Depends:
|
Depends:
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
linux-base,
|
|
||||||
refind,
|
|
||||||
refind-btrfs,
|
|
||||||
snapper,
|
|
||||||
booster,
|
booster,
|
||||||
Recommends:
|
Description: Booster hooks for PikaOS LiveISO.
|
||||||
apt-btrfs-snapper,
|
|
||||||
Description: refind-btrfs stanza generation hooks for PikaOS.
|
|
1
pika-live-booster-hooks/debian/install
Normal file
1
pika-live-booster-hooks/debian/install
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr
|
@ -1,2 +0,0 @@
|
|||||||
etc
|
|
||||||
usr
|
|
@ -1,5 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
gen-pika-refind-btrfs-stanza
|
|
@ -1,5 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
gen-pika-refind-btrfs-stanza
|
|
@ -1,52 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
export EFI_PATH=/boot/efi
|
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]
|
|
||||||
then echo "Please run as root"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f $EFI_PATH/EFI/refind/refind.conf ]]
|
|
||||||
then
|
|
||||||
export DO_STANDARD_REFIND_PATH=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f $EFI_PATH/EFI/BOOT/refind.conf ]]
|
|
||||||
then
|
|
||||||
export DO_BOOTX64_REFIND_PATH=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
REFIND_CMDLINE_OPTIONS="$(cat /boot/refind_linux.conf | cut -f4 -d"\"" | head -n1 | sed 's/---//g' | sed -E 's/root=[^ ]* //g')"
|
|
||||||
ROOT_PARTUUID="$(blkid -s PARTUUID -o value $(df -P -h -T / | awk 'END{print $1}'))"
|
|
||||||
|
|
||||||
if [[ -z "$ROOT_PARTUUID" ]]
|
|
||||||
then
|
|
||||||
echo "Current Root partition type doesn't support PARTUUID"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
create_entries() {
|
|
||||||
REFIND_PATH="$1"
|
|
||||||
grep -qxF 'include pika-refind-btrfs.conf' $EFI_PATH/$REFIND_PATH/refind.conf || echo 'include pika-refind-btrfs.conf' >> $EFI_PATH/$REFIND_PATH/refind.conf
|
|
||||||
rm -rfv $EFI_PATH/$REFIND_PATH/pika-refind-btrfs.conf || true
|
|
||||||
linux-version list | while read kernel_version
|
|
||||||
do
|
|
||||||
echo "Creating refind stanza for: $kernel_version"
|
|
||||||
echo -e "menuentry \"PikaOS Snapper Stanza - $kernel_version\" {\n icon /$REFIND_PATH/refind-dark/icons/os_pika.png\n volume \"PikaOS\"\n loader /vmlinuz-$kernel_version\n initrd /booster.img-$kernel_version\n options \"root=PARTUUID=$ROOT_PARTUUID $REFIND_CMDLINE_OPTIONS\"\n}\n" >> "$EFI_PATH/$REFIND_PATH/pika-refind-btrfs.conf"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ $DO_STANDARD_REFIND_PATH == true ]]
|
|
||||||
then
|
|
||||||
echo "Standard Refind Path Detected"
|
|
||||||
create_entries "EFI/refind"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $DO_BOOTX64_REFIND_PATH == true ]]
|
|
||||||
then
|
|
||||||
echo "Bootx64 Refind Path Detected"
|
|
||||||
create_entries "EFI/BOOT"
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user