Merge lp:~ubuntu-cdimage/debian-cd/rebased-cleanup into lp:~ubuntu-cdimage/debian-cd/ubuntu

Proposed by Łukasz Zemczak
Status: Merged
Merged at revision: 2102
Proposed branch: lp:~ubuntu-cdimage/debian-cd/rebased-cleanup
Merge into: lp:~ubuntu-cdimage/debian-cd/ubuntu
Diff against target: 349 lines (+5/-251)
4 files modified
Makefile (+2/-59)
tools/boot/hirsute/boot-s390x (+3/-11)
tools/boot/hirsute/common.sh (+0/-146)
tools/hirsute/installtools.sh (+0/-35)
To merge this branch: bzr merge lp:~ubuntu-cdimage/debian-cd/rebased-cleanup
Reviewer Review Type Date Requested Status
Ubuntu CD Image Team Pending
Review via email: mp+395222@code.launchpad.net

Commit message

Rebase xnox's lp:~xnox/debian-cd/cleanup branch on hirsute, as we already released groovy as-is.

Description of the change

Rebase xnox's lp:~xnox/debian-cd/cleanup branch on hirsute, as we already released groovy as-is.

As mentioned, this is a hirsute rebase of https://code.launchpad.net/~xnox/debian-cd/cleanup/+merge/386101.

Full list of changes per original commits:

    groovy: drop ltsp.seed, removed from archive.

    make: also drop bin-doc, also copies unused pics, and nothing else

    make: stop generating unused README.diskdefines
    I'm not even sure what it is, but I think it's a debian only thing.

    make: stop installing pics, for README.html that was not installed since 2015
    So in 2015, installation of debian documentation was removed from
    Makefile. But the pictures, used by not-installed README.html.in, were
    still copied to the ISOs.
    So stop copying unused pics/ into all of our ISOs.

    make: do not create empty /install dir
    boot-* scripts in all releases `mkdir -p install` anyway, and on
    groovy this directly is now empty, and thus should not be created.

    groovy: drop trying to install obsolete installation-guide.

    groovy: remove app-install.sh, last used in 8.04 by edubuntu for addon disks.

    groovy: drop cdromupgrade upgrade.sh script, alternative ISOs are not built anymore.

    groovy: drop add_layerfs_path_opt, unused.

    groovy: drop list_kernel_abis & check_kernel_sync, unused.

To post a comment you must log in.
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I checked the changes more or less and they seem to be all good. If no one objects, I'll merge and deploy this next week.

Revision history for this message
Łukasz Zemczak (sil2100) :
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Ok, no comments from anyone - I'll merge it as is.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2020-06-25 13:28:04 +0000
+++ Makefile 2020-12-11 12:21:14 +0000
@@ -664,24 +664,6 @@
664 num=$${i%%.packages}; num=$${num##$(BDIR)/}; \664 num=$${i%%.packages}; num=$${num##$(BDIR)/}; \
665 dir=$(BDIR)/CD$$num; \665 dir=$(BDIR)/CD$$num; \
666 echo -n $(BINDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \666 echo -n $(BINDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \
667 echo '#define DISKNAME ' $(BINDISKINFOND) | sed 's/_NONUS//g' \
668 > $$dir/README.diskdefines; \
669 echo '#define TYPE binary' \
670 >> $$dir/README.diskdefines; \
671 echo '#define TYPEbinary 1' \
672 >> $$dir/README.diskdefines; \
673 echo '#define ARCH ' $(ARCH) \
674 >> $$dir/README.diskdefines; \
675 echo '#define ARCH'$(ARCH) ' 1' \
676 >> $$dir/README.diskdefines; \
677 echo '#define DISKNUM ' $$num | sed 's/_NONUS//g' \
678 >> $$dir/README.diskdefines; \
679 echo '#define DISKNUM'$$num ' 1' | sed 's/_NONUS//g' \
680 >> $$dir/README.diskdefines; \
681 echo '#define TOTALNUM ' $$nb \
682 >> $$dir/README.diskdefines; \
683 echo '#define TOTALNUM'$$nb ' 1' \
684 >> $$dir/README.diskdefines; \
685 echo -n $(BINVOLID) > $(BDIR)/$${num}.volid; \667 echo -n $(BINVOLID) > $(BDIR)/$${num}.volid; \
686 $(set_mkisofs_opts) bin $$num > $(BDIR)/$${num}.mkisofs_opts; \668 $(set_mkisofs_opts) bin $$num > $(BDIR)/$${num}.mkisofs_opts; \
687 done669 done
@@ -695,24 +677,6 @@
695 num=$${i%%.sources}; num=$${num##$(SDIR)/}; \677 num=$${i%%.sources}; num=$${num##$(SDIR)/}; \
696 dir=$(SDIR)/CD$$num; \678 dir=$(SDIR)/CD$$num; \
697 echo -n $(SRCDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \679 echo -n $(SRCDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \
698 echo '#define DISKNAME ' $(SRCDISKINFOND) | sed 's/_NONUS//g' \
699 > $$dir/README.diskdefines; \
700 echo '#define TYPE source' \
701 >> $$dir/README.diskdefines; \
702 echo '#define TYPEsource 1' \
703 >> $$dir/README.diskdefines; \
704 echo '#define ARCH ' $(ARCH) \
705 >> $$dir/README.diskdefines; \
706 echo '#define ARCH'$(ARCH) ' 1' \
707 >> $$dir/README.diskdefines; \
708 echo '#define DISKNUM ' $$num | sed 's/_NONUS//g' \
709 >> $$dir/README.diskdefines; \
710 echo '#define DISKNUM'$$num ' 1' | sed 's/_NONUS//g' \
711 >> $$dir/README.diskdefines; \
712 echo '#define TOTALNUM ' $$nb \
713 >> $$dir/README.diskdefines; \
714 echo '#define TOTALNUM'$$nb ' 1' \
715 >> $$dir/README.diskdefines; \
716 echo -n $(SRCVOLID) > $(SDIR)/$${num}.volid; \680 echo -n $(SRCVOLID) > $(SDIR)/$${num}.volid; \
717 $(set_mkisofs_opts) src $$num > $(SDIR)/$${num}.mkisofs_opts; \681 $(set_mkisofs_opts) src $$num > $(SDIR)/$${num}.mkisofs_opts; \
718 done682 done
@@ -922,33 +886,12 @@
922 done886 done
923 $(Q)touch $(BDIR)/bootable-stamp887 $(Q)touch $(BDIR)/bootable-stamp
924888
925# Add the doc files to the CDs and the Release-Notes and the
926# Contents-$(ARCH).gz files
927bin-doc: ok bin-infos $(MIRROR)/doc $(BDIR)/CD1/doc
928$(BDIR)/CD1/doc:
929 @echo "Adding the documentation (bin) ..."
930 mkdir -p $(BDIR)/$$DISK/doc
931 $(Q)$(add_bin_doc) # Common stuff for all disks
932
933src-doc: ok src-infos $(SDIR)/CD1/README.html
934$(SDIR)/CD1/README.html:
935 @echo "Adding the documentation (src) ..."
936 $(Q)set -e; \
937 for i in $(SDIR)/*.sources; do \
938 dir=$${i%%.sources}; \
939 dir=$${dir##$(SDIR)/}; \
940 dir=$(SDIR)/CD$$dir; \
941 mkdir -p $$dir/pics ; \
942 cp $(BASEDIR)/data/pics/*.* $$dir/pics/ ; \
943 done
944
945# Add the install stuff on the first CD889# Add the install stuff on the first CD
946installtools: ok bin-doc disks $(BDIR)/CD1/install890installtools: ok bin-infos disks $(BDIR)/CD1/install
947$(BDIR)/CD1/install:891$(BDIR)/CD1/install:
948 @echo "Adding install tools and documentation ..."892 @echo "Adding install tools and documentation ..."
949 $(Q)set -e; \893 $(Q)set -e; \
950 for DISK in $(FIRSTDISKS) ; do \894 for DISK in $(FIRSTDISKS) ; do \
951 mkdir $(BDIR)/$$DISK/install ; \
952 if [ -x "$(BASEDIR)/tools/$(CODENAME)/installtools.sh" ]; then \895 if [ -x "$(BASEDIR)/tools/$(CODENAME)/installtools.sh" ]; then \
953 $(BASEDIR)/tools/$(CODENAME)/installtools.sh $(BDIR)/$$DISK ; \896 $(BASEDIR)/tools/$(CODENAME)/installtools.sh $(BDIR)/$$DISK ; \
954 fi ; \897 fi ; \
@@ -1437,7 +1380,7 @@
1437# Little trick to simplify things1380# Little trick to simplify things
1438official_images: bin-official_images src-official_images1381official_images: bin-official_images src-official_images
1439bin-official_images: ok bootable upgrade app-install bin-images1382bin-official_images: ok bootable upgrade app-install bin-images
1440src-official_images: ok src-doc src-images1383src-official_images: ok src-infos src-images
14411384
1442$(CODENAME)_status: ok init1385$(CODENAME)_status: ok init
1443 @echo "Using the provided status file for $(CODENAME)-$(ARCH) ..."1386 @echo "Using the provided status file for $(CODENAME)-$(ARCH) ..."
14441387
=== removed file 'data/hirsute/README.html.in'
=== removed file 'data/hirsute/preseed/ubuntu-mate/ltsp.seed'
=== removed file 'data/hirsute/preseed/ubuntu/ltsp.seed'
=== removed file 'data/hirsute/preseed/xubuntu/ltsp.seed'
=== removed file 'tools/add-bin-doc'
=== removed file 'tools/boot/hirsute/boot-amd64.calc'
=== removed file 'tools/boot/hirsute/boot-ppc64el.calc'
=== modified file 'tools/boot/hirsute/boot-s390x'
--- tools/boot/hirsute/boot-s390x 2020-10-23 15:26:45 +0000
+++ tools/boot/hirsute/boot-s390x 2020-12-11 12:21:14 +0000
@@ -16,7 +16,6 @@
16# $1 is the CD number16# $1 is the CD number
17# $2 is the temporary CD build dir17# $2 is the temporary CD build dir
1818
19# only add_mkisofs_opt used
20. $BASEDIR/tools/boot/$DI_CODENAME/common.sh19. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
2120
22set -e21set -e
@@ -42,12 +41,8 @@
42perl -e "print pack('N', 0x1000000)" > $CDDIR/boot/initrd.off41perl -e "print pack('N', 0x1000000)" > $CDDIR/boot/initrd.off
43perl -e "print pack('N', -s '$CDDIR/boot/initrd.ubuntu')" > $CDDIR/boot/initrd.siz42perl -e "print pack('N', -s '$CDDIR/boot/initrd.ubuntu')" > $CDDIR/boot/initrd.siz
4443
45# hm, but we don't use layerfs, do we?
46LAYERFS_PATH_OPT=$(add_layerfs_path_opt)
47CMDLINE="$LAYERFS_PATH_OPT --- quiet"
48
49# compute cmdline, store it in the name used in .ins & exec scripts44# compute cmdline, store it in the name used in .ins & exec scripts
50echo "$CMDLINE" > $CDDIR/boot/parmfile.ubuntu45echo "quiet --- " > $CDDIR/boot/parmfile.ubuntu
5146
52# secondary top-level ubuntu.ins file was requested in47# secondary top-level ubuntu.ins file was requested in
53# https://bugs.launchpad.net/ubuntu-cdimage/+bug/1536981/comments/648# https://bugs.launchpad.net/ubuntu-cdimage/+bug/1536981/comments/6
@@ -56,8 +51,5 @@
56# generate QEMU-KVM boot image51# generate QEMU-KVM boot image
57$BASEDIR/tools/gen-s390-cd-kernel.pl --initrd=$CDDIR/boot/initrd.ubuntu --kernel=$CDDIR/boot/kernel.ubuntu --cmdline="$CMDLINE" --outfile=$CDDIR/boot/ubuntu.ikr52$BASEDIR/tools/gen-s390-cd-kernel.pl --initrd=$CDDIR/boot/initrd.ubuntu --kernel=$CDDIR/boot/kernel.ubuntu --cmdline="$CMDLINE" --outfile=$CDDIR/boot/ubuntu.ikr
5853
59# add QEMU-KVM boot image54# enable Joliet and add QEMU-KVM boot image
60add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot -b boot/ubuntu.ikr"55echo -n " -J -no-emul-boot -b boot/ubuntu.ikr" >> $N.mkisofs_opts
61
62# enable Joliet
63add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
6456
=== modified file 'tools/boot/hirsute/common.sh'
--- tools/boot/hirsute/common.sh 2020-12-01 11:17:30 +0000
+++ tools/boot/hirsute/common.sh 2020-12-11 12:21:14 +0000
@@ -37,150 +37,4 @@
37 esac37 esac
38}38}
3939
40# This file provides some common code that is intented to be called
41# by the various boot-<arch> scripts.
42
43
44default_preseed() {
45 case $PROJECT in
46 ubuntu|ubuntukylin)
47 DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu.seed'
48 ;;
49 kubuntu)
50 DEFAULT_PRESEED='file=/cdrom/preseed/kubuntu.seed'
51 ;;
52 kubuntu-plasma5)
53 DEFAULT_PRESEED='file=/cdrom/preseed/kubuntu-plasma5.seed'
54 ;;
55 edubuntu)
56 DEFAULT_PRESEED='file=/cdrom/preseed/edubuntu.seed'
57 ;;
58 xubuntu)
59 DEFAULT_PRESEED='file=/cdrom/preseed/xubuntu.seed'
60 ;;
61 ubuntu-server)
62 if [ "$CDIMAGE_LIVE" != 1 ]; then
63 DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-server.seed'
64 fi
65 ;;
66 ubuntu-mid)
67 DEFAULT_PRESEED='file=/cdrom/preseed/mid.seed'
68 ;;
69 ubuntu-netbook)
70 DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-netbook.seed'
71 ;;
72 jeos)
73 DEFAULT_PRESEED='file=/cdrom/preseed/jeos.seed'
74 ;;
75 ubuntustudio)
76 DEFAULT_PRESEED='file=/cdrom/preseed/ubuntustudio.seed'
77 ;;
78 mythbuntu)
79 DEFAULT_PRESEED='file=/cdrom/preseed/mythbuntu.seed'
80 ;;
81 lubuntu)
82 DEFAULT_PRESEED='file=/cdrom/preseed/lubuntu.seed'
83 ;;
84 ubuntu-gnome)
85 DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-gnome.seed'
86 ;;
87 ubuntu-mate)
88 DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-mate.seed'
89 ;;
90 ubuntu-budgie)
91 DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-budgie.seed'
92 ;;
93 *)
94 DEFAULT_PRESEED=
95 ;;
96 esac
97 if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
98 case $PROJECT in
99 ubuntu|ubuntu-*)
100 ;;
101 *)
102 FRONTEND_BACKGROUND="FRONTEND_BACKGROUND=original"
103 DEFAULT_PRESEED="${DEFAULT_PRESEED:+$DEFAULT_PRESEED }$FRONTEND_BACKGROUND"
104 ;;
105 esac
106 fi
107}
108
109default_language() {
110 case $PROJECT in
111 ubuntukylin)
112 KERNEL_PARAMS="${KERNEL_PARAMS:+$KERNEL_PARAMS }locale=zh_CN keyboard-configuration/layoutcode?=cn"
113 ;;
114 esac
115}
116
117list_kernel_abis() {
118 perl -le '
119 BEGIN { %images = map { $_ => 1 } @ARGV; $found = 0; %abis = (); }
120 while (<STDIN>) {
121 chomp;
122 if (/^[^[:space:]]/) {
123 $found = exists $images{$_};
124 } elsif ($found and /^[[:space:]]+kernel-image-([^[:space:]]*)-di /) {
125 $abis{$1} = 1;
126 }
127 }
128 END { print for sort keys %abis; }' "$@" <MANIFEST.udebs
129}
130
131check_kernel_sync() {
132 [ "$CDIMAGE_INSTALL_BASE" = 1 ] || return 0
133 for abi in $(sed -n 's/^kernel-image-\([^ ]*\)-di .*/\1/p'); do
134 # If any parameters were passed, then they represent a list of ABI
135 # suffixes we're interested in.
136 if [ "$#" -gt 0 ]; then
137 local allowed=
138 for allow_abi; do
139 case $abi in
140 *-$allow_abi)
141 allowed=1
142 break
143 ;;
144 esac
145 done
146 if [ -z "$allowed" ]; then
147 continue
148 fi
149 fi
150 if ! grep -q -- "-$abi-di\$" list; then
151 echo "debian-installer has kernel ABI $abi, but no corresponding udebs are on the CD!" >&2
152 exit 1
153 fi
154 done
155}
156
157initrd_suffix() {
158 if zcat -t "$1" >/dev/null 2>&1; then
159 echo .gz
160 elif bzcat -t "$1" >/dev/null 2>&1; then
161 echo .bz2
162 # TODO: This only works if there is at least one dot in $1; fortunately
163 # this is currently always true.
164 elif lzcat -S ".${1##*.}" -t "$1" >/dev/null 2>&1; then
165 # .lzma would be more conventional, but we use .lz to avoid creating
166 # trouble for boot loaders that might need to read from 8.3
167 # filesystems without implementing support for long file names (e.g.
168 # syslinux on FAT USB sticks).
169 echo .lz
170 fi
171}
172
173HUMANPROJECT="$(echo "$CAPPROJECT" | sed 's/-/ /g')"40HUMANPROJECT="$(echo "$CAPPROJECT" | sed 's/-/ /g')"
174
175# Add an option to the mkisofs options for this CD _only_ if it's not
176# already set. $1 is the opts file location, "$2" is the new
177# option. Call this with _logical groupings_ of options
178add_mkisofs_opt() {
179 OPTS_FILE=$1
180 NEW_OPT="$2"
181
182 if ! ( grep -q -- "$NEW_OPT" $OPTS_FILE 2>/dev/null) ; then
183 echo -n "$NEW_OPT " >> $OPTS_FILE
184 fi
185}
186
18741
=== removed file 'tools/hirsute/app-install.sh'
=== modified file 'tools/hirsute/installtools.sh'
--- tools/hirsute/installtools.sh 2020-10-23 15:26:45 +0000
+++ tools/hirsute/installtools.sh 2020-12-11 12:21:14 +0000
@@ -1,45 +1,10 @@
1#!/bin/bash1#!/bin/bash
22
3# Install files in /install and some in /doc
4set -e3set -e
54
6# The location of the tree for CD#1, passed in5# The location of the tree for CD#1, passed in
7DIR=$16DIR=$1
87
9if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
10 DOCDIR=doc
11
12 if [ -n "$BOOTDISKS" -a -e $BOOTDISKS/current/$DOCDIR ] ; then
13 DOCS=$BOOTDISKS/current/$DOCDIR
14 elif MANUALDEB="$($BASEDIR/tools/apt-selection cache show "installation-guide-$ARCH")"; then
15 MANUALDEB="$(echo "$MANUALDEB" | grep ^Filename | awk '{print $2}')"
16 else
17 echo "WARNING: Using $DI_CODENAME bootdisk documentation"
18 DOCS=$MIRROR/dists/$DI_CODENAME/main/installer-$ARCH/current/$DOCDIR
19 fi
20
21 # Put the install documentation in /doc/install
22 if [ "$DOCS" ] && [ -d "$DOCS" ]; then
23 cd $DOCS
24 mkdir -p $DIR/$DOCDIR/install
25 if ! cp -a * $DIR/$DOCDIR/install; then
26 echo "ERROR: Unable to copy installer documentation to CD."
27 fi
28 elif [ "$MANUALDEB" ]; then
29 mkdir -p "$DIR/$DOCDIR/install/tmp" "$DIR/$DOCDIR/install/manual"
30 dpkg -x "$MIRROR/$MANUALDEB" "$DIR/$DOCDIR/install/tmp"
31 mv "$DIR/$DOCDIR/install/tmp/usr/share/doc/installation-guide-$ARCH"/* "$DIR/$DOCDIR/install/manual/"
32 rm -rf "$DIR/$DOCDIR/install/tmp"
33 # just keep the HTML version
34 rm -f "$DIR/$DOCDIR/install/manual/copyright" \
35 "$DIR/$DOCDIR/install/manual/changelog.gz" \
36 "$DIR/$DOCDIR/install/manual"/*/install.*.pdf* \
37 "$DIR/$DOCDIR/install/manual"/*/install.*.txt*
38 else
39 echo "ERROR: Unable to copy installer documentation to CD."
40 fi
41fi
42
43# Preseed files for special install types8# Preseed files for special install types
44PRESEED_ROOT=$BASEDIR/data/$CODENAME/preseed9PRESEED_ROOT=$BASEDIR/data/$CODENAME/preseed
45for preseed_dir in \10for preseed_dir in \
4611
=== removed file 'tools/hirsute/upgrade.sh'

Subscribers

People subscribed via source and target branches