This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-09-04 12:34:30 +03:00 committed by GitHub
parent b318eb9bc8
commit b7388a20d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 10 deletions

View File

@ -8,10 +8,8 @@ install:
ronn docs/manpage.md ronn docs/manpage.md
mkdir "$(DESTDIR)/etc/" mkdir "$(DESTDIR)/etc/"
touch "$(DESTDIR)/etc/booster.yaml" touch "$(DESTDIR)/etc/booster.yaml"
touch "$(DESTDIR)/etc/booster-nvidia.yaml"
install -Dp -m755 ./generator/generator "$(DESTDIR)/usr/bin/booster" install -Dp -m755 ./generator/generator "$(DESTDIR)/usr/bin/booster"
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 ./booster.yml "$(DESTDIR)/etc/booster.yaml" install -Dp -m755 ./booster.yml "$(DESTDIR)/etc/booster.yaml"
install -Dp -m755 ./booster-nvidia.yml "$(DESTDIR)/etc/booster-nvidia.yaml"

View File

@ -1,4 +0,0 @@
vconsole: true
extra_files: busybox
enable_lvm: true
modules_force_load: nvidia,usbhid

2
debian/booster.install vendored Normal file
View File

@ -0,0 +1,2 @@
etc
usr

View File

@ -28,7 +28,7 @@ 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
cp -f /etc/booster-nvidia.yaml /etc/booster.yaml sed -i "s#root=#rd.modules_force_load=nvidia,usbhid root=#" /boot/refind_linux.conf
fi fi
cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs

5
debian/booster.prerm vendored Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -e
cp -f /usr/sbin/update-initramfs-legacy /usr/sbin/update-initramfs

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
booster (0.11.0-99pika21) lunar; urgency=medium booster (0.11.0-99pika22) lunar; urgency=medium
* Do the config properly * Do the config properly

7
debian/control vendored
View File

@ -10,5 +10,10 @@ Rules-Requires-Root: no
Package: booster Package: booster
Architecture: linux-any Architecture: linux-any
Depends: ${misc:Depends}, libdevmapper-dev, libdevmapper-event1.02.1, libdevmapper1.02.1, busybox Depends: ${misc:Depends}, libdevmapper-dev, libdevmapper-event1.02.1, libdevmapper1.02.1, busybox
Provides: booster
Description: booster initramfs generation Description: booster initramfs generation
Package: booster-placeholder
Architecture: linux-any
Depends: ${misc:Depends}, libdevmapper-dev, libdevmapper-event1.02.1, libdevmapper1.02.1, busybox
Provides: booster (= ${binary:Version})
Description: PLACEHOLDER FOR ISO BUILDS DO NOT USE.

View File

@ -8,7 +8,6 @@ cd booster
cp -rvf ../debian ./ cp -rvf ../debian ./
cp -f ../Makefile ./Makefile cp -f ../Makefile ./Makefile
cp -f ../booster.yml ./booster.yml cp -f ../booster.yml ./booster.yml
cp -f ../booster-nvidia.yml ./booster-nvidia.yml
cp -f ../update-initramfs ./update-initramfs cp -f ../update-initramfs ./update-initramfs
# Get build deps # Get build deps