From 29ea078db22a9e79975ca68a3547c3b5c8d85575 Mon Sep 17 00:00:00 2001 From: marcosfad Date: Wed, 6 May 2020 21:25:05 +0200 Subject: [PATCH] Update kernel 5.6.11 --- build.sh | 12 ++++++------ build_file_system.sh | 5 +++-- build_image.sh | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/build.sh b/build.sh index 7131760..0be582f 100755 --- a/build.sh +++ b/build.sh @@ -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" diff --git a/build_file_system.sh b/build_file_system.sh index d1dc8fe..f6292a7 100755 --- a/build_file_system.sh +++ b/build_file_system.sh @@ -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... " diff --git a/build_image.sh b/build_image.sh index 5a8f388..60e97e2 100755 --- a/build_image.sh +++ b/build_image.sh @@ -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