Layered Ubuntu desktop by default

Default Ubuntu desktop to the layered format
Remove the requirement on setting IMAGEFORMAT to layered to build a
layered image and relies on PASSED instead.
sil2100/core18-pi3-arm64
Jean-Baptiste Lallement 6 years ago
parent f3dadf1091
commit 42d1d77612

@ -305,7 +305,7 @@ rm -f /usr/sbin/update-initramfs
dpkg-divert --quiet --remove --rename /usr/sbin/update-initramfs dpkg-divert --quiet --remove --rename /usr/sbin/update-initramfs
EOF EOF
if [ "${IMAGEFORMAT:-}" = live-layered ]; then if [ -n "${PASSES}" ]; then
PATH="config/:$PATH" lb chroot_layered "$@" PATH="config/:$PATH" lb chroot_layered "$@"
else else
lb chroot "$@" lb chroot "$@"
@ -536,7 +536,7 @@ EOF
fi fi
# Create layered squashfs system # Create layered squashfs system
if [ "${IMAGEFORMAT:-}" = live-layered ]; then if [ -n "${PASSES}" ]; then
CURPASS=1 CURPASS=1
PREVPASS="" PREVPASS=""
PREFIX="" PREFIX=""

@ -70,9 +70,6 @@ add_binary_hook ()
} }
if [ -z "${IMAGEFORMAT:-}" ]; then if [ -z "${IMAGEFORMAT:-}" ]; then
if [ ${SUBPROJECT:-} = layered ]; then
IMAGEFORMAT=live-layered
fi
case $PROJECT:${SUBPROJECT:-} in case $PROJECT:${SUBPROJECT:-} in
ubuntu-cpc:*) ubuntu-cpc:*)
if [ "$SUBARCH" = "raspi3" ]; then if [ "$SUBARCH" = "raspi3" ]; then
@ -193,12 +190,6 @@ case $IMAGEFORMAT in
exit 0 exit 0
;; ;;
live-layered)
# Stop lb creating filesystem.squashfs by skipping lb_binary_rootfs and lb_binary_manifest
skip_lb_stage binary_rootfs
skip_lb_stage binary_manifest
;;
none) none)
OPTS="${OPTS:+$OPTS }--chroot-filesystem $IMAGEFORMAT" OPTS="${OPTS:+$OPTS }--chroot-filesystem $IMAGEFORMAT"
;; ;;
@ -213,6 +204,12 @@ case $IMAGEFORMAT in
;; ;;
esac esac
if [ -n "${PASSES}" ]; then
# Stop lb creating filesystem.squashfs by skipping lb_binary_rootfs and lb_binary_manifest
skip_lb_stage binary_rootfs
skip_lb_stage binary_manifest
fi
if [ "$PREINSTALLED" = "true" ]; then if [ "$PREINSTALLED" = "true" ]; then
# Touch a random file that we can refer back to during build, # Touch a random file that we can refer back to during build,
# cause that's wildly hackish # cause that's wildly hackish
@ -307,22 +304,18 @@ esac
case $PROJECT in case $PROJECT in
ubuntu|ubuntu-dvd) ubuntu|ubuntu-dvd)
PASSES="install-minimal install live"
add_task install-minimal minimal standard ubuntu-desktop-minimal ubuntu-desktop-minimal-default-languages
add_task install ubuntu-desktop ubuntu-desktop-default-languages
LIVE_TASK='ubuntu-live'
case ${SUBPROJECT:-} in case ${SUBPROJECT:-} in
layered) layered)
PASSES="install-minimal install live" # LANG PASS for minimal and install
add_task install-minimal minimal standard ubuntu-desktop-minimal
# LANG PASS for minimal
add_layered_pass_delta install-minimal desktop-minimal-default-languages '^desktop-minimal-(?!default-languages)[^.]+$' add_layered_pass_delta install-minimal desktop-minimal-default-languages '^desktop-minimal-(?!default-languages)[^.]+$'
add_layered_pass_delta install-minimal desktop-minimal-default-languages 'nolangpacks' # none (if no default langpack is selected) add_layered_pass_delta install-minimal desktop-minimal-default-languages 'nolangpacks' # none (if no default langpack is selected)
add_task install ubuntu-desktop
# LANG PASS for install
add_layered_pass_delta install desktop-default-languages '^desktop-(?!default-languages|minimal|common)[^.]+$' add_layered_pass_delta install desktop-default-languages '^desktop-(?!default-languages|minimal|common)[^.]+$'
add_layered_pass_delta install desktop-default-languages 'nolangpacks' # none (if no default langpack is selected) add_layered_pass_delta install desktop-default-languages 'nolangpacks' # none (if no default langpack is selected)
LIVE_TASK='ubuntu-live'
;;
*)
add_task install minimal standard ubuntu-desktop
LIVE_TASK='ubuntu-live'
;; ;;
esac esac
@ -689,7 +682,7 @@ case $SUBPROJECT in
;; ;;
esac esac
if [ "${IMAGEFORMAT:-}" != live-layered ]; then if [ -z "${PASSES}" ]; then
# we'll expand the base seed given here according to the STRUCTURE file, and # we'll expand the base seed given here according to the STRUCTURE file, and
# then look in all of the seeds found to see which snaps are seeded # then look in all of the seeds found to see which snaps are seeded
case $PROJECT:${SUBPROJECT:-} in case $PROJECT:${SUBPROJECT:-} in

Loading…
Cancel
Save