Browse Source

Update kernel 5.6.11

pull/3/head
marcosfad 2 years ago
parent
commit
29ea078db2
  1. 12
      build.sh
  2. 5
      build_file_system.sh
  3. 4
      build_image.sh

12
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"

5
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... "

4
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

Loading…
Cancel
Save