From 34fb57e3621e9a1f3531e3e3faea2631e3d6f7aa Mon Sep 17 00:00:00 2001 From: handsome_feng Date: Tue, 5 Mar 2024 19:26:24 +0800 Subject: [PATCH] Ubuntu Kylin ship to new installer --- live-build/auto/config | 39 +++++++++++++++++-- .../hooks/020-ubuntu-live.chroot_early | 1 + 2 files changed, 37 insertions(+), 3 deletions(-) create mode 120000 live-build/ubuntukylin/hooks/020-ubuntu-live.chroot_early diff --git a/live-build/auto/config b/live-build/auto/config index d4ea76b5..bde61edf 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -569,7 +569,8 @@ case $IMAGEFORMAT in *) case $PROJECT in ubuntu-server|ubuntu-wsl|ubuntu-oem|ubuntu|\ - ubuntu-budgie|ubuntustudio-dvd|edubuntu|ubuntucinnamon|xubuntu) + ubuntu-budgie|ubuntustudio-dvd|edubuntu|ubuntucinnamon|xubuntu|\ + ubuntukylin) ;; *) add_package live casper @@ -874,10 +875,41 @@ case $PROJECT in https://git.launchpad.net/subiquity po config/catalog-translations ;; - lubuntu|ubuntu-unity|ubuntukylin) + lubuntu|ubuntu-unity) add_task install minimal standard ${PROJECT}-desktop LIVE_TASK=${PROJECT}-live ;; + ubuntukylin) + # Ubuntu Kylin now ships the new installer. + touch config/universe-enabled + PASSES_TO_LAYERS="true" + KERNEL_FLAVOURS=generic + add_task minimal minimal standard ubuntukylin-desktop-minimal + add_task minimal.standard ubuntukylin-desktop + add_task minimal.standard.live ubuntukylin-live + add_package minimal.standard.live linux-$KERNEL_FLAVOURS + cat <<-EOF > config/minimal.catalog-in.yaml + name: "Ubuntu Kylin Desktop (minimized)" + description: >- + A minimal installation of the Ubuntu Kylin Desktop. + id: ubuntukylin-desktop-minimal + type: fsimage-layered + variant: desktop + locale_support: langpack + EOF + cat <<-EOF > config/minimal.standard.catalog-in.yaml + name: "Ubuntu Kylin Desktop" + description: >- + A full featured Ubuntu Kylin Desktop. + id: ubuntukylin-desktop + type: fsimage-layered + variant: desktop + locale_support: langpack + default: yes + EOF + /usr/share/livecd-rootfs/checkout-translations-branch \ + https://git.launchpad.net/subiquity po config/catalog-translations + ;; xubuntu) # Xubuntu now ships the new installer. @@ -1474,7 +1506,8 @@ esac case $PROJECT:${SUBPROJECT:-} in ubuntu-cpc:*|ubuntu-server:live|ubuntu:desktop-preinstalled| \ ubuntu-wsl:*|ubuntu-mini-iso:*|ubuntu:|ubuntu-oem:*| \ - ubuntustudio-dvd:*|edubuntu:*|ubuntu-budgie:*|ubuntucinnamon:*|xubuntu:*) + ubuntustudio-dvd:*|edubuntu:*|ubuntu-budgie:*|ubuntucinnamon:*|xubuntu:*| \ + ubuntukylin:*) # Ensure that most things e.g. includes.chroot are copied as is for entry in /usr/share/livecd-rootfs/live-build/${PROJECT}/*; do case $entry in diff --git a/live-build/ubuntukylin/hooks/020-ubuntu-live.chroot_early b/live-build/ubuntukylin/hooks/020-ubuntu-live.chroot_early new file mode 120000 index 00000000..b410ddab --- /dev/null +++ b/live-build/ubuntukylin/hooks/020-ubuntu-live.chroot_early @@ -0,0 +1 @@ +../../ubuntu/hooks/020-ubuntu-live.chroot_early \ No newline at end of file