mirror of https://github.com/armbian/build.git
Improved debootstrap hacking support with fixes for Ubuntu Noble (#6076)
* Remove extension for patching Deboostrap to support Ubuntu Noble * Integrate Deboostrap patching to the build script * fix problems related to Noble
This commit is contained in:
parent
b8cd5dc4fe
commit
f2e663f087
|
|
@ -1,2 +0,0 @@
|
|||
gpiod
|
||||
nocache
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -1 +1 @@
|
|||
jammy
|
||||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -1 +0,0 @@
|
|||
jammy
|
||||
|
|
@ -1 +1,3 @@
|
|||
gpiod
|
||||
nocache
|
||||
firmware-sof-signed
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -0,0 +1 @@
|
|||
sid
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
function add_host_dependencies__patch_deboostrap(){
|
||||
|
||||
echo "Patching Debootstrap to support Ubuntu Noble"
|
||||
NOBLE_SYMLINK=/usr/share/debootstrap/scripts/noble
|
||||
if [ -L ${NOBLE_SYMLINK} ] && [ -e ${NOBLE_SYMLINK} ]; then
|
||||
:
|
||||
else
|
||||
if ! command -v sudo &> /dev/null; then
|
||||
run_host_command_logged ln -s gutsy ${NOBLE_SYMLINK}
|
||||
else
|
||||
run_host_command_logged sudo ln -s gutsy ${NOBLE_SYMLINK}
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
|
@ -310,8 +310,10 @@ function do_extra_configuration() {
|
|||
|
||||
if [[ "$RELEASE" =~ ^(focal|jammy|kinetic|lunar|mantic|noble)$ ]]; then
|
||||
DISTRIBUTION="Ubuntu"
|
||||
DEBOOTSTRAP_SOURCE="gutsy"
|
||||
else
|
||||
DISTRIBUTION="Debian"
|
||||
DEBOOTSTRAP_SOURCE="sid"
|
||||
fi
|
||||
|
||||
DEBIAN_MIRROR='deb.debian.org/debian'
|
||||
|
|
|
|||
|
|
@ -72,6 +72,14 @@ function create_new_rootfs_cache_via_debootstrap() {
|
|||
"'--components=${AGGREGATED_DEBOOTSTRAP_COMPONENTS_COMMA}'" # from aggregation.py
|
||||
)
|
||||
|
||||
# Hacking debootstrap to support future releases as symlink is often the only change, so we don't need to bump host OS
|
||||
# This functionality is coming with debootstrap v1.0.128 (Mantic)
|
||||
local debootstrap_home="/usr/share/debootstrap/scripts"
|
||||
if [[ ! -L "${debootstrap_home}/${RELEASE}" && ! -e "${debootstrap_home}/${RELEASE}" ]]; then
|
||||
display_alert "Making symlink as host deboostrap is missing it" "" "wrn"
|
||||
run_host_command_logged ln -s "${DEBOOTSTRAP_SOURCE}" "${debootstrap_home}/${RELEASE}"
|
||||
fi
|
||||
|
||||
# Small detour for local apt caching option.
|
||||
local_apt_deb_cache_prepare "before debootstrap" # sets LOCAL_APT_CACHE_INFO
|
||||
if [[ "${LOCAL_APT_CACHE_INFO[USE]}" == "yes" ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue