Compare commits

...

8 Commits

Author SHA1 Message Date
35f5d0f6ee Update .github/release-nest-v3
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 1m18s
2024-11-29 16:39:51 +01:00
e423cfb893 Update debian/changelog 2024-11-29 16:39:36 +01:00
5ecc6b3a5c Update debian/booster.postinst 2024-11-29 16:39:16 +01:00
da8d10e76f Update pika-build-config/amd64-v3.sh 2024-11-15 17:31:09 +01:00
82960b1066 Update .github/release-nest-v3
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 1m0s
2024-11-13 20:56:38 +01:00
f2d8045360 Update main.sh 2024-11-13 20:56:30 +01:00
2932577ae5 Update .github/release-nest-v3
Some checks failed
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 45s
2024-11-13 20:54:18 +01:00
daf90e4420 Kernel autoconfigure hooks and dep adjustments (#4)
Some checks failed
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Failing after 1m46s
Reviewed-on: #4
Co-authored-by: Renaud Lepage <root@cybikbase.com>
Co-committed-by: Renaud Lepage <root@cybikbase.com>
2024-11-13 20:53:06 +01:00
8 changed files with 16 additions and 30 deletions

View File

@ -1 +1 @@
2 3

View File

@ -1 +1 @@
2 3

View File

@ -12,6 +12,4 @@ install:
install -Dp -m644 ./docs/manpage.1 "$(DESTDIR)/usr/share/man/man1/booster.1" install -Dp -m644 ./docs/manpage.1 "$(DESTDIR)/usr/share/man/man1/booster.1"
install -Dp -m755 ./init/init "$(DESTDIR)/usr/lib/booster/init" install -Dp -m755 ./init/init "$(DESTDIR)/usr/lib/booster/init"
install -Dp -m755 ./update-initramfs "$(DESTDIR)/usr/lib/booster/update-initramfs" install -Dp -m755 ./update-initramfs "$(DESTDIR)/usr/lib/booster/update-initramfs"
install -Dp -m755 ./packaging/pikaos/regenerate_uki "$(DESTDIR)/usr/sbin/regenerate_uki"
install -Dp -m755 ./packaging/pikaos/regenerate_uki-pkexec "$(DESTDIR)/usr/bin/regenerate_uki"
install -Dp -m755 ./booster.yml "$(DESTDIR)/etc/booster.yaml" install -Dp -m755 ./booster.yml "$(DESTDIR)/etc/booster.yaml"

View File

@ -11,26 +11,6 @@ else
echo "KEYMAP="us"" >> /etc/vconsole.conf echo "KEYMAP="us"" >> /etc/vconsole.conf
fi fi
# Check if there are entries in crypttab
crypt_check=$(cat /etc/crypttab | grep -v '^#' || true)
if [[ -n $crypt_check ]]
then
# Use the first crypttab entry as luks for booster (valid for calamares and probably most installers)
if cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f2 | grep -i "UUID="
then
# Check if luks is already configured in refind
if cat /boot/refind_linux.conf | grep -i 'rd.luks'
then
true
else
sed -i "s#root=#rd.luks.name="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f2 | sed "s#UUID=##")"="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f1)" root=#" /boot/refind_linux.conf
fi
else
echo -e "ERROR 1: /etc/crypttab is invalid!\nFirst crypttab entry (presumed to be root luks) is not defined via UUID\nPlease make sure to define luks for root as the first entry in /etc/crypttab via UUID (use blkid)"
exit 1
fi
fi
# Add nvidia support if an nvidia card is detected # Add nvidia support if an nvidia card is detected
if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia && lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i -E 'kernel modules|kernel driver' | grep -i nvidia if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia && lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i -E 'kernel modules|kernel driver' | grep -i nvidia
then then

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
booster (0.11.6.ferreogit4-101pika2) pika; urgency=medium
* Move UKI integration to extra package
* Refine UKI scripts
-- cybik <root@cybik.moe> Wed, 13 Nov 2024 12:00:00 -0800
booster (0.11.6.ferreogit3-101pika1) pika; urgency=medium booster (0.11.6.ferreogit3-101pika1) pika; urgency=medium
* UKI * UKI

1
debian/control vendored
View File

@ -10,6 +10,7 @@ Rules-Requires-Root: no
Package: booster Package: booster
Architecture: linux-any Architecture: linux-any
Depends: ${misc:Depends}, ${shlibs:Depends}, libdevmapper-dev, libdevmapper-event1.02.1, libdevmapper1.02.1, busybox, console-data, lvm2, pciutils Depends: ${misc:Depends}, ${shlibs:Depends}, libdevmapper-dev, libdevmapper-event1.02.1, libdevmapper1.02.1, busybox, console-data, lvm2, pciutils
Recommends: jq, systemd-ukify, systemd-boot-efi
Replaces: booster-temp Replaces: booster-temp
Conflicts: booster-temp Conflicts: booster-temp
Description: booster initramfs generation Description: booster initramfs generation

View File

@ -2,7 +2,7 @@
set -e set -e
VERSION="0.11.6.ferreogit3" VERSION="0.11.6.ferreogit4"
source ./pika-build-config.sh source ./pika-build-config.sh

View File

@ -1,10 +1,10 @@
#! /bin/bash #! /bin/bash
export PIKA_BUILD_ARCH="amd64-v3" export PIKA_BUILD_ARCH="amd64-v3"
export DEBIAN_FRONTEND="noninteractive" export DEBIAN_FRONTEND="noninteractive"
export DEB_BUILD_MAINT_OPTIONS="optimize=+lto -march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" export DEB_BUILD_MAINT_OPTIONS="optimize=+lto -march=x86-64-v3 -O3 -flto=auto"
export DEB_CFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" export DEB_CFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto=auto"
export DEB_CPPFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" export DEB_CPPFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto=auto"
export DEB_CXXFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" export DEB_CXXFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto=auto"
export DEB_LDFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" export DEB_LDFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto=auto"
export DEB_BUILD_OPTIONS="nocheck notest terse" export DEB_BUILD_OPTIONS="nocheck notest terse"
export DPKG_GENSYMBOLS_CHECK_LEVEL=0 export DPKG_GENSYMBOLS_CHECK_LEVEL=0