Bump buildroot to 2020.11-rc1 (#985)
* Update buildroot-patches for 2020.11-rc1 buildroot * Update buildroot to 2020.11-rc1 Signed-off-by: Stefan Agner <stefan@agner.ch> * Don't rely on sfdisk --list-free output The --list-free (-F) argument does not allow machine readable mode. And it seems that the output format changes over time (different spacing, using size postfixes instead of raw blocks). Use sfdisk json output and calculate free partition space ourselfs. This works for 2.35 and 2.36 and is more robust since we rely on output which is meant for scripts to parse. * Migrate defconfigs for Buildroot 2020.11-rc1 In particular, rename BR2_TARGET_UBOOT_BOOT_SCRIPT(_SOURCE) to BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT(_SOURCE). * Rebase/remove systemd patches for systemd 246 * Drop apparmor/libapparmor from buildroot-external * hassos-persists: use /run as directory for lockfiles The U-Boot tools use /var/lock by default which is not created any more by systemd by default (it is under tmpfiles legacy.conf, which we no longer install). * Disable systemd-update-done.service The service is not suited for pure read-only systems. In particular the service needs to be able to write a file in /etc and /var. Remove the service. Note: This is a static service and cannot be removed using systemd-preset. * Disable apparmor.service for now The service loads all default profiles. Some might actually cause problems. E.g. the profile for ping seems not to match our setup for /etc/resolv.conf: [85503.634653] audit: type=1400 audit(1605286002.684:236): apparmor="DENIED" operation="open" profile="ping" name="/run/resolv.conf" pid=27585 comm="ping" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
This commit is contained in:
@@ -1,21 +1,17 @@
|
||||
menu "System configuration"
|
||||
|
||||
# Note: usually, it is not possible to select a provider of a virtual
|
||||
# package. But here we have an exception: there are only four providers
|
||||
# and they only get selected by separate entries in this choice and
|
||||
# under different, exclusive conditions. So this is a safe situation.
|
||||
# Note on package/skeleton: usually, it is not safe to 'select' a
|
||||
# provider of a virtual package. But below we have an exception: each
|
||||
# init system may select one of the virtual skeleton-init-* packages.
|
||||
# As only one init system may be enabled, only one skeleton-init-* may
|
||||
# be selected. So this is a safe situation.
|
||||
choice
|
||||
prompt "Root FS skeleton"
|
||||
|
||||
config BR2_ROOTFS_SKELETON_DEFAULT
|
||||
bool "default target skeleton"
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_SYSV
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_BUSYBOX
|
||||
select BR2_PACKAGE_SKELETON_INIT_OPENRC if BR2_INIT_OPENRC
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_INIT_SYSTEMD
|
||||
select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_INIT_NONE
|
||||
help
|
||||
Use default target skeleton
|
||||
Use default target skeleton for selected init system.
|
||||
|
||||
config BR2_ROOTFS_SKELETON_CUSTOM
|
||||
bool "custom target skeleton"
|
||||
@@ -23,6 +19,9 @@ config BR2_ROOTFS_SKELETON_CUSTOM
|
||||
help
|
||||
Use custom target skeleton.
|
||||
|
||||
# skeleton from br2-external trees, if any
|
||||
source "$BR2_BASE_DIR/.br2-external.in.skeleton"
|
||||
|
||||
endchoice
|
||||
|
||||
if BR2_ROOTFS_SKELETON_CUSTOM
|
||||
@@ -83,6 +82,8 @@ config BR2_TARGET_GENERIC_PASSWD_METHOD
|
||||
default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
|
||||
default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
|
||||
|
||||
# See comment at the top of the file, about selecting individual
|
||||
# skeletons, which are providers of the virtual skeleton package.
|
||||
choice
|
||||
prompt "Init system"
|
||||
default BR2_INIT_BUSYBOX
|
||||
@@ -91,6 +92,7 @@ config BR2_INIT_BUSYBOX
|
||||
bool "BusyBox"
|
||||
select BR2_PACKAGE_BUSYBOX
|
||||
select BR2_PACKAGE_INITSCRIPTS
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_ROOTFS_SKELETON_DEFAULT
|
||||
|
||||
config BR2_INIT_SYSV
|
||||
bool "systemV"
|
||||
@@ -98,12 +100,14 @@ config BR2_INIT_SYSV
|
||||
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
|
||||
select BR2_PACKAGE_INITSCRIPTS
|
||||
select BR2_PACKAGE_SYSVINIT
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_ROOTFS_SKELETON_DEFAULT
|
||||
|
||||
config BR2_INIT_OPENRC
|
||||
bool "OpenRC"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_OPENRC
|
||||
select BR2_PACKAGE_SKELETON_INIT_OPENRC if BR2_ROOTFS_SKELETON_DEFAULT
|
||||
|
||||
comment "openrc needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
@@ -116,28 +120,38 @@ comment "openrc needs a toolchain w/ dynamic library"
|
||||
config BR2_INIT_SYSTEMD
|
||||
bool "systemd"
|
||||
depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
depends on BR2_TOOLCHAIN_HAS_SSP
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
depends on BR2_TOOLCHAIN_HAS_SSP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5
|
||||
select BR2_ROOTFS_MERGED_USR
|
||||
select BR2_PACKAGE_SYSTEMD
|
||||
select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_ROOTFS_SKELETON_DEFAULT
|
||||
|
||||
comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.10"
|
||||
comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.10, host and target gcc >= 5"
|
||||
depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC || \
|
||||
!BR2_TOOLCHAIN_HAS_SSP || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
config BR2_INIT_NONE
|
||||
bool "None"
|
||||
select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
|
||||
help
|
||||
Buildroot will not install any init system. You will
|
||||
have to provide your own, either with a new package
|
||||
or with a rootfs-overlay.
|
||||
|
||||
# Init systems from br2-external trees, if any
|
||||
source "$BR2_BASE_DIR/.br2-external.in.init"
|
||||
|
||||
endchoice
|
||||
|
||||
choice
|
||||
@@ -397,7 +411,8 @@ endif # BR2_ROOTFS_SKELETON_DEFAULT
|
||||
|
||||
config BR2_SYSTEM_DEFAULT_PATH
|
||||
string "Set the system's default PATH"
|
||||
default "/bin:/sbin:/usr/bin:/usr/sbin"
|
||||
default "/usr/bin:/usr/sbin" if BR2_ROOTFS_MERGED_USR
|
||||
default "/bin:/sbin:/usr/bin:/usr/sbin" if !BR2_ROOTFS_MERGED_USR
|
||||
help
|
||||
Sets the system's default PATH. It is being used in
|
||||
/etc/profile in the skeleton-init-common package and by some
|
||||
|
||||
@@ -23,4 +23,4 @@ staff:x:50:
|
||||
lock:x:54:
|
||||
netdev:x:82:
|
||||
users:x:100:
|
||||
nogroup:x:65534:
|
||||
nobody:x:65534:
|
||||
|
||||
Reference in New Issue
Block a user