Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicFusion authored Dec 11, 2023
1 parent be25b88 commit 652df4f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/config_nvidia.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ DISTRO_PKGS=\
f2fs-tools \
xfsprogs \
refind \
nvidia-driver-535
nvidia-driver-545

# Packages to install after (to avoid dependency issues)
POST_DISTRO_PKGS=rsync
Expand Down
5 changes: 3 additions & 2 deletions mk/automatic.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ USB=$(BUILD)/$(ISO_NAME).img

CASPER_PATH=casper

VMLINUZ=vmlinuz-6.5.5-pikaos
INITRD=initrd.img-6.5.5-pikaos
VMLINUZ=vmlinuz-6.6.0-pikaos
INITRD=initrd.img-6.6.0-pikaos
HOST_KERNEL := $(shell uname -r)

SED=\
s|CASPER_PATH|$(CASPER_PATH)|g; \
Expand Down
7 changes: 7 additions & 0 deletions mk/iso.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ $(BUILD)/iso_casper.tag: $(BUILD)/live $(BUILD)/chroot.tag $(BUILD)/live.tag $(B
# Update filesystem size
sudo du -sx --block-size=1 "$(BUILD)/live" | cut -f1 > "$(BUILD)/iso/$(CASPER_PATH)/filesystem.size"

# Get rid of chroot kernel from image
sudo rm -rfv "$(BUILD)/live/boot/initrd.img-$(HOST_KERNEL)"
sudo rm -rfv "$(BUILD)/live/boot/vmlinuz-$(HOST_KERNEL)"
sudo rm -rfv "$(BUILD)/live/boot/config-$(HOST_KERNEL)"
sudo rm -rfv "$(BUILD)/live/usr/src/linux-headers-$(HOST_KERNEL)"
sudo rm -rfv "$(BUILD)/live/usr/src/linux-headers-$(HOST_KERNEL)"

# Rebuild filesystem image
sudo mksquashfs "$(BUILD)/live" \
"$(BUILD)/iso/$(CASPER_PATH)/filesystem.squashfs" \
Expand Down
16 changes: 8 additions & 8 deletions scripts/chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ sudo mkdir -p /usr/lib/firmware/
if echo "${INSTALL}" | grep nvidia-driver
then
echo "Workaround: Link chroot kernel to host kernel..."
ln -sfv /boot/config-6.5.5-pikaos /boot/config-$(uname -r)
ln -sfv /boot/initrd.img-6.5.5-pikaos /boot/initrd.img-$(uname -r)
ln -sfv /usr/src/linux-headers-6.5.5-pikaos /usr/src/linux-headers-$(uname -r)
ln -sfv /boot/System.map-6.5.5-pikaos /boot/System.map-$(uname -r)
ln -sfv /boot/vmlinuz-6.5.5-pikaos /boot/vmlinuz-$(uname -r)
sudo apt install nvidia-kernel-common-535 --yes --option Acquire::Retries=5
sudo apt install linux-modules-nvidia-535-6.5.5-pikaos --yes --option Acquire::Retries=5
sudo apt install nvidia-pika-kernel-module-535 --yes --option Acquire::Retries=5
ln -sfv /boot/config-6.6.0-pikaos /boot/config-$(uname -r)
ln -sfv /boot/initrd.img-6.6.0-pikaos /boot/initrd.img-$(uname -r)
ln -sfv /usr/src/linux-headers-6.6.0-pikaos /usr/src/linux-headers-$(uname -r)
ln -sfv /boot/System.map-6.6.0-pikaos /boot/System.map-$(uname -r)
ln -sfv /boot/vmlinuz-6.6.0-pikaos /boot/vmlinuz-$(uname -r)
sudo apt install nvidia-kernel-common-545 --yes --option Acquire::Retries=5
sudo apt install linux-modules-nvidia-545-6.6.0-pikaos --yes --option Acquire::Retries=5
sudo apt install nvidia-pika-kernel-module-545 --yes --option Acquire::Retries=5
fi


Expand Down

0 comments on commit 652df4f

Please sign in to comment.