Update kernel 5.6.11

This commit is contained in:
marcosfad 2020-05-06 21:25:05 +02:00
parent 5f2c2d7ce3
commit 29ea078db2
3 changed files with 11 additions and 10 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash
set -eu -o pipefail
export ROOT_PATH=$(pwd)
export WORKING_PATH=/root/work
export CHROOT_PATH="${WORKING_PATH}/chroot"
export IMAGE_PATH="${WORKING_PATH}/image"
#KERNEL_VERSION=5.4.0-26-generic
export KERNEL_VERSION=5.6.10-mbp
ROOT_PATH=$(pwd)
WORKING_PATH=/root/work
CHROOT_PATH="${WORKING_PATH}/chroot"
IMAGE_PATH="${WORKING_PATH}/image"
#KERNEL_VERSION=5.4.0-29-generic
KERNEL_VERSION=5.6.11-mbp
if [ -d "$WORKING_PATH" ]; then
rm -rf "$WORKING_PATH"

View File

@ -27,8 +27,9 @@ echo >&2 "===]> Info: Copy audio config files... "
mkdir -p "${CHROOT_PATH}"/usr/share/alsa/cards/
cp -fv "${ROOT_PATH}"/files/audio/AppleT2.conf "${CHROOT_PATH}"/usr/share/alsa/cards/AppleT2.conf
cp -fv "${ROOT_PATH}"/files/audio/apple-t2.conf "${CHROOT_PATH}"/usr/share/pulseaudio/alsa-mixer/profile-sets/apple-t2.conf
cp -fv "${ROOT_PATH}"/files/audio/91-pulseaudio-custom.rules "${CHROOT_PATH}"/usr/lib/udev/rules.d/91-pulseaudio-custom.rules
cp -fv "${ROOT_PATH}"/files/audio/91-pulseaudio-custom.rules "${CHROOT_PATH}"/etc/udev/rules.d/91-pulseaudio-custom.rules
printf "\n load-module module-combine-sink channels=6 channel_map=front-left,front-right,rear-left,rear-right,front-center,lfe" >> /etc/pulse/default.pa
printf "\ndefault-sample-channels = 6\nremixing-produce-lfe = yes\nremixing-consume-lfe = yes" >> /etc/pulse/daemon.conf
### Copy grub config without finding macos partition
echo >&2 "===]> Info: Patch Grub... "

View File

@ -12,9 +12,9 @@ mkdir -p "${IMAGE_PATH}"/{casper,install,isolinux}
cp "${CHROOT_PATH}"/boot/vmlinuz-"${KERNEL_VERSION}" "${IMAGE_PATH}"/casper/vmlinuz
cp "${CHROOT_PATH}"/boot/initrd.img-"${KERNEL_VERSION}" "${IMAGE_PATH}"/casper/initrd
touch "${IMAGE_PATH}"/ubuntu
echo >&2 "===]> Info: Grub configuration... "
# we add an empty file to use it with the search command in grub later on.
touch "${IMAGE_PATH}"/ubuntu
cp -r "${ROOT_PATH}"/files/preseed "${IMAGE_PATH}"/preseed
cp "${ROOT_PATH}/files/grub/grub.cfg" "${IMAGE_PATH}"/isolinux/grub.cfg