Skip to content

Commit

Permalink
Don't use sudo with DKMS
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Jun 7, 2024
1 parent 0b5e304 commit c662892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/chroot_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="
apfs-dkms \
dmg2img

apfs_ver=$(ls /usr/src | grep linux-apfs-rw | cut -d "-" -f 4)
sudo dkms install -m linux-apfs-rw -v ${apfs_ver} -k KVER-t2-${CODENAME}

echo >&2 "===]> Info: Change initramfs format (for grub)... "
sed -i "s/COMPRESS=lz4/COMPRESS=gzip/g" "/etc/initramfs-tools/initramfs.conf"

Expand All @@ -134,6 +131,9 @@ printf 'apple-bce' >>/etc/modules-load.d/t2.conf
#printf '\n# display f* key in touchbar\noptions apple-ib-tb fnmode=1\n' >> /etc/modprobe.d/apple-tb.conf
#printf '\n# delay loading of the touchbar driver\ninstall apple-ib-tb /bin/sleep 7; /sbin/modprobe --ignore-install apple-ib-tb' >> /etc/modprobe.d/delay-tb.conf

apfs_ver=$(ls /usr/src | grep linux-apfs-rw | cut -d "-" -f 4)
dkms install -m linux-apfs-rw -v ${apfs_ver} -k KVER-t2-${CODENAME}

echo >&2 "===]> Info: Update initramfs... "

## Add custom drivers to be loaded at boot
Expand Down

0 comments on commit c662892

Please sign in to comment.