mirror of https://github.com/marcosfad/mbp-ubuntu
Update kernel 5.6.11
This commit is contained in:
parent
5f2c2d7ce3
commit
29ea078db2
12
build.sh
12
build.sh
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
export ROOT_PATH=$(pwd)
|
ROOT_PATH=$(pwd)
|
||||||
export WORKING_PATH=/root/work
|
WORKING_PATH=/root/work
|
||||||
export CHROOT_PATH="${WORKING_PATH}/chroot"
|
CHROOT_PATH="${WORKING_PATH}/chroot"
|
||||||
export IMAGE_PATH="${WORKING_PATH}/image"
|
IMAGE_PATH="${WORKING_PATH}/image"
|
||||||
#KERNEL_VERSION=5.4.0-26-generic
|
#KERNEL_VERSION=5.4.0-29-generic
|
||||||
export KERNEL_VERSION=5.6.10-mbp
|
KERNEL_VERSION=5.6.11-mbp
|
||||||
|
|
||||||
if [ -d "$WORKING_PATH" ]; then
|
if [ -d "$WORKING_PATH" ]; then
|
||||||
rm -rf "$WORKING_PATH"
|
rm -rf "$WORKING_PATH"
|
||||||
|
|
|
@ -27,8 +27,9 @@ echo >&2 "===]> Info: Copy audio config files... "
|
||||||
mkdir -p "${CHROOT_PATH}"/usr/share/alsa/cards/
|
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/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/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
|
### Copy grub config without finding macos partition
|
||||||
echo >&2 "===]> Info: Patch Grub... "
|
echo >&2 "===]> Info: Patch Grub... "
|
||||||
|
|
|
@ -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/vmlinuz-"${KERNEL_VERSION}" "${IMAGE_PATH}"/casper/vmlinuz
|
||||||
cp "${CHROOT_PATH}"/boot/initrd.img-"${KERNEL_VERSION}" "${IMAGE_PATH}"/casper/initrd
|
cp "${CHROOT_PATH}"/boot/initrd.img-"${KERNEL_VERSION}" "${IMAGE_PATH}"/casper/initrd
|
||||||
|
|
||||||
touch "${IMAGE_PATH}"/ubuntu
|
|
||||||
|
|
||||||
echo >&2 "===]> Info: Grub configuration... "
|
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 -r "${ROOT_PATH}"/files/preseed "${IMAGE_PATH}"/preseed
|
||||||
cp "${ROOT_PATH}/files/grub/grub.cfg" "${IMAGE_PATH}"/isolinux/grub.cfg
|
cp "${ROOT_PATH}/files/grub/grub.cfg" "${IMAGE_PATH}"/isolinux/grub.cfg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue