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
1=== modified file 'Makefile'
2--- Makefile 2020-06-25 13:28:04 +0000
3+++ Makefile 2020-12-11 12:21:14 +0000
4@@ -664,24 +664,6 @@
5 num=$${i%%.packages}; num=$${num##$(BDIR)/}; \
6 dir=$(BDIR)/CD$$num; \
7 echo -n $(BINDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \
8- echo '#define DISKNAME ' $(BINDISKINFOND) | sed 's/_NONUS//g' \
9- > $$dir/README.diskdefines; \
10- echo '#define TYPE binary' \
11- >> $$dir/README.diskdefines; \
12- echo '#define TYPEbinary 1' \
13- >> $$dir/README.diskdefines; \
14- echo '#define ARCH ' $(ARCH) \
15- >> $$dir/README.diskdefines; \
16- echo '#define ARCH'$(ARCH) ' 1' \
17- >> $$dir/README.diskdefines; \
18- echo '#define DISKNUM ' $$num | sed 's/_NONUS//g' \
19- >> $$dir/README.diskdefines; \
20- echo '#define DISKNUM'$$num ' 1' | sed 's/_NONUS//g' \
21- >> $$dir/README.diskdefines; \
22- echo '#define TOTALNUM ' $$nb \
23- >> $$dir/README.diskdefines; \
24- echo '#define TOTALNUM'$$nb ' 1' \
25- >> $$dir/README.diskdefines; \
26 echo -n $(BINVOLID) > $(BDIR)/$${num}.volid; \
27 $(set_mkisofs_opts) bin $$num > $(BDIR)/$${num}.mkisofs_opts; \
28 done
29@@ -695,24 +677,6 @@
30 num=$${i%%.sources}; num=$${num##$(SDIR)/}; \
31 dir=$(SDIR)/CD$$num; \
32 echo -n $(SRCDISKINFO) | sed 's/_NONUS//g' > $$dir/.disk/info; \
33- echo '#define DISKNAME ' $(SRCDISKINFOND) | sed 's/_NONUS//g' \
34- > $$dir/README.diskdefines; \
35- echo '#define TYPE source' \
36- >> $$dir/README.diskdefines; \
37- echo '#define TYPEsource 1' \
38- >> $$dir/README.diskdefines; \
39- echo '#define ARCH ' $(ARCH) \
40- >> $$dir/README.diskdefines; \
41- echo '#define ARCH'$(ARCH) ' 1' \
42- >> $$dir/README.diskdefines; \
43- echo '#define DISKNUM ' $$num | sed 's/_NONUS//g' \
44- >> $$dir/README.diskdefines; \
45- echo '#define DISKNUM'$$num ' 1' | sed 's/_NONUS//g' \
46- >> $$dir/README.diskdefines; \
47- echo '#define TOTALNUM ' $$nb \
48- >> $$dir/README.diskdefines; \
49- echo '#define TOTALNUM'$$nb ' 1' \
50- >> $$dir/README.diskdefines; \
51 echo -n $(SRCVOLID) > $(SDIR)/$${num}.volid; \
52 $(set_mkisofs_opts) src $$num > $(SDIR)/$${num}.mkisofs_opts; \
53 done
54@@ -922,33 +886,12 @@
55 done
56 $(Q)touch $(BDIR)/bootable-stamp
57
58-# Add the doc files to the CDs and the Release-Notes and the
59-# Contents-$(ARCH).gz files
60-bin-doc: ok bin-infos $(MIRROR)/doc $(BDIR)/CD1/doc
61-$(BDIR)/CD1/doc:
62- @echo "Adding the documentation (bin) ..."
63- mkdir -p $(BDIR)/$$DISK/doc
64- $(Q)$(add_bin_doc) # Common stuff for all disks
65-
66-src-doc: ok src-infos $(SDIR)/CD1/README.html
67-$(SDIR)/CD1/README.html:
68- @echo "Adding the documentation (src) ..."
69- $(Q)set -e; \
70- for i in $(SDIR)/*.sources; do \
71- dir=$${i%%.sources}; \
72- dir=$${dir##$(SDIR)/}; \
73- dir=$(SDIR)/CD$$dir; \
74- mkdir -p $$dir/pics ; \
75- cp $(BASEDIR)/data/pics/*.* $$dir/pics/ ; \
76- done
77-
78 # Add the install stuff on the first CD
79-installtools: ok bin-doc disks $(BDIR)/CD1/install
80+installtools: ok bin-infos disks $(BDIR)/CD1/install
81 $(BDIR)/CD1/install:
82 @echo "Adding install tools and documentation ..."
83 $(Q)set -e; \
84 for DISK in $(FIRSTDISKS) ; do \
85- mkdir $(BDIR)/$$DISK/install ; \
86 if [ -x "$(BASEDIR)/tools/$(CODENAME)/installtools.sh" ]; then \
87 $(BASEDIR)/tools/$(CODENAME)/installtools.sh $(BDIR)/$$DISK ; \
88 fi ; \
89@@ -1437,7 +1380,7 @@
90 # Little trick to simplify things
91 official_images: bin-official_images src-official_images
92 bin-official_images: ok bootable upgrade app-install bin-images
93-src-official_images: ok src-doc src-images
94+src-official_images: ok src-infos src-images
95
96 $(CODENAME)_status: ok init
97 @echo "Using the provided status file for $(CODENAME)-$(ARCH) ..."
98
99=== removed file 'data/hirsute/README.html.in'
100=== removed file 'data/hirsute/preseed/ubuntu-mate/ltsp.seed'
101=== removed file 'data/hirsute/preseed/ubuntu/ltsp.seed'
102=== removed file 'data/hirsute/preseed/xubuntu/ltsp.seed'
103=== removed file 'tools/add-bin-doc'
104=== removed file 'tools/boot/hirsute/boot-amd64.calc'
105=== removed file 'tools/boot/hirsute/boot-ppc64el.calc'
106=== modified file 'tools/boot/hirsute/boot-s390x'
107--- tools/boot/hirsute/boot-s390x 2020-10-23 15:26:45 +0000
108+++ tools/boot/hirsute/boot-s390x 2020-12-11 12:21:14 +0000
109@@ -16,7 +16,6 @@
110 # $1 is the CD number
111 # $2 is the temporary CD build dir
112
113-# only add_mkisofs_opt used
114 . $BASEDIR/tools/boot/$DI_CODENAME/common.sh
115
116 set -e
117@@ -42,12 +41,8 @@
118 perl -e "print pack('N', 0x1000000)" > $CDDIR/boot/initrd.off
119 perl -e "print pack('N', -s '$CDDIR/boot/initrd.ubuntu')" > $CDDIR/boot/initrd.siz
120
121-# hm, but we don't use layerfs, do we?
122-LAYERFS_PATH_OPT=$(add_layerfs_path_opt)
123-CMDLINE="$LAYERFS_PATH_OPT --- quiet"
124-
125 # compute cmdline, store it in the name used in .ins & exec scripts
126-echo "$CMDLINE" > $CDDIR/boot/parmfile.ubuntu
127+echo "quiet --- " > $CDDIR/boot/parmfile.ubuntu
128
129 # secondary top-level ubuntu.ins file was requested in
130 # https://bugs.launchpad.net/ubuntu-cdimage/+bug/1536981/comments/6
131@@ -56,8 +51,5 @@
132 # generate QEMU-KVM boot image
133 $BASEDIR/tools/gen-s390-cd-kernel.pl --initrd=$CDDIR/boot/initrd.ubuntu --kernel=$CDDIR/boot/kernel.ubuntu --cmdline="$CMDLINE" --outfile=$CDDIR/boot/ubuntu.ikr
134
135-# add QEMU-KVM boot image
136-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot -b boot/ubuntu.ikr"
137-
138-# enable Joliet
139-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
140+# enable Joliet and add QEMU-KVM boot image
141+echo -n " -J -no-emul-boot -b boot/ubuntu.ikr" >> $N.mkisofs_opts
142
143=== modified file 'tools/boot/hirsute/common.sh'
144--- tools/boot/hirsute/common.sh 2020-12-01 11:17:30 +0000
145+++ tools/boot/hirsute/common.sh 2020-12-11 12:21:14 +0000
146@@ -37,150 +37,4 @@
147 esac
148 }
149
150-# This file provides some common code that is intented to be called
151-# by the various boot-<arch> scripts.
152-
153-
154-default_preseed() {
155- case $PROJECT in
156- ubuntu|ubuntukylin)
157- DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu.seed'
158- ;;
159- kubuntu)
160- DEFAULT_PRESEED='file=/cdrom/preseed/kubuntu.seed'
161- ;;
162- kubuntu-plasma5)
163- DEFAULT_PRESEED='file=/cdrom/preseed/kubuntu-plasma5.seed'
164- ;;
165- edubuntu)
166- DEFAULT_PRESEED='file=/cdrom/preseed/edubuntu.seed'
167- ;;
168- xubuntu)
169- DEFAULT_PRESEED='file=/cdrom/preseed/xubuntu.seed'
170- ;;
171- ubuntu-server)
172- if [ "$CDIMAGE_LIVE" != 1 ]; then
173- DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-server.seed'
174- fi
175- ;;
176- ubuntu-mid)
177- DEFAULT_PRESEED='file=/cdrom/preseed/mid.seed'
178- ;;
179- ubuntu-netbook)
180- DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-netbook.seed'
181- ;;
182- jeos)
183- DEFAULT_PRESEED='file=/cdrom/preseed/jeos.seed'
184- ;;
185- ubuntustudio)
186- DEFAULT_PRESEED='file=/cdrom/preseed/ubuntustudio.seed'
187- ;;
188- mythbuntu)
189- DEFAULT_PRESEED='file=/cdrom/preseed/mythbuntu.seed'
190- ;;
191- lubuntu)
192- DEFAULT_PRESEED='file=/cdrom/preseed/lubuntu.seed'
193- ;;
194- ubuntu-gnome)
195- DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-gnome.seed'
196- ;;
197- ubuntu-mate)
198- DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-mate.seed'
199- ;;
200- ubuntu-budgie)
201- DEFAULT_PRESEED='file=/cdrom/preseed/ubuntu-budgie.seed'
202- ;;
203- *)
204- DEFAULT_PRESEED=
205- ;;
206- esac
207- if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
208- case $PROJECT in
209- ubuntu|ubuntu-*)
210- ;;
211- *)
212- FRONTEND_BACKGROUND="FRONTEND_BACKGROUND=original"
213- DEFAULT_PRESEED="${DEFAULT_PRESEED:+$DEFAULT_PRESEED }$FRONTEND_BACKGROUND"
214- ;;
215- esac
216- fi
217-}
218-
219-default_language() {
220- case $PROJECT in
221- ubuntukylin)
222- KERNEL_PARAMS="${KERNEL_PARAMS:+$KERNEL_PARAMS }locale=zh_CN keyboard-configuration/layoutcode?=cn"
223- ;;
224- esac
225-}
226-
227-list_kernel_abis() {
228- perl -le '
229- BEGIN { %images = map { $_ => 1 } @ARGV; $found = 0; %abis = (); }
230- while (<STDIN>) {
231- chomp;
232- if (/^[^[:space:]]/) {
233- $found = exists $images{$_};
234- } elsif ($found and /^[[:space:]]+kernel-image-([^[:space:]]*)-di /) {
235- $abis{$1} = 1;
236- }
237- }
238- END { print for sort keys %abis; }' "$@" <MANIFEST.udebs
239-}
240-
241-check_kernel_sync() {
242- [ "$CDIMAGE_INSTALL_BASE" = 1 ] || return 0
243- for abi in $(sed -n 's/^kernel-image-\([^ ]*\)-di .*/\1/p'); do
244- # If any parameters were passed, then they represent a list of ABI
245- # suffixes we're interested in.
246- if [ "$#" -gt 0 ]; then
247- local allowed=
248- for allow_abi; do
249- case $abi in
250- *-$allow_abi)
251- allowed=1
252- break
253- ;;
254- esac
255- done
256- if [ -z "$allowed" ]; then
257- continue
258- fi
259- fi
260- if ! grep -q -- "-$abi-di\$" list; then
261- echo "debian-installer has kernel ABI $abi, but no corresponding udebs are on the CD!" >&2
262- exit 1
263- fi
264- done
265-}
266-
267-initrd_suffix() {
268- if zcat -t "$1" >/dev/null 2>&1; then
269- echo .gz
270- elif bzcat -t "$1" >/dev/null 2>&1; then
271- echo .bz2
272- # TODO: This only works if there is at least one dot in $1; fortunately
273- # this is currently always true.
274- elif lzcat -S ".${1##*.}" -t "$1" >/dev/null 2>&1; then
275- # .lzma would be more conventional, but we use .lz to avoid creating
276- # trouble for boot loaders that might need to read from 8.3
277- # filesystems without implementing support for long file names (e.g.
278- # syslinux on FAT USB sticks).
279- echo .lz
280- fi
281-}
282-
283 HUMANPROJECT="$(echo "$CAPPROJECT" | sed 's/-/ /g')"
284-
285-# Add an option to the mkisofs options for this CD _only_ if it's not
286-# already set. $1 is the opts file location, "$2" is the new
287-# option. Call this with _logical groupings_ of options
288-add_mkisofs_opt() {
289- OPTS_FILE=$1
290- NEW_OPT="$2"
291-
292- if ! ( grep -q -- "$NEW_OPT" $OPTS_FILE 2>/dev/null) ; then
293- echo -n "$NEW_OPT " >> $OPTS_FILE
294- fi
295-}
296-
297
298=== removed file 'tools/hirsute/app-install.sh'
299=== modified file 'tools/hirsute/installtools.sh'
300--- tools/hirsute/installtools.sh 2020-10-23 15:26:45 +0000
301+++ tools/hirsute/installtools.sh 2020-12-11 12:21:14 +0000
302@@ -1,45 +1,10 @@
303 #!/bin/bash
304
305-# Install files in /install and some in /doc
306 set -e
307
308 # The location of the tree for CD#1, passed in
309 DIR=$1
310
311-if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
312- DOCDIR=doc
313-
314- if [ -n "$BOOTDISKS" -a -e $BOOTDISKS/current/$DOCDIR ] ; then
315- DOCS=$BOOTDISKS/current/$DOCDIR
316- elif MANUALDEB="$($BASEDIR/tools/apt-selection cache show "installation-guide-$ARCH")"; then
317- MANUALDEB="$(echo "$MANUALDEB" | grep ^Filename | awk '{print $2}')"
318- else
319- echo "WARNING: Using $DI_CODENAME bootdisk documentation"
320- DOCS=$MIRROR/dists/$DI_CODENAME/main/installer-$ARCH/current/$DOCDIR
321- fi
322-
323- # Put the install documentation in /doc/install
324- if [ "$DOCS" ] && [ -d "$DOCS" ]; then
325- cd $DOCS
326- mkdir -p $DIR/$DOCDIR/install
327- if ! cp -a * $DIR/$DOCDIR/install; then
328- echo "ERROR: Unable to copy installer documentation to CD."
329- fi
330- elif [ "$MANUALDEB" ]; then
331- mkdir -p "$DIR/$DOCDIR/install/tmp" "$DIR/$DOCDIR/install/manual"
332- dpkg -x "$MIRROR/$MANUALDEB" "$DIR/$DOCDIR/install/tmp"
333- mv "$DIR/$DOCDIR/install/tmp/usr/share/doc/installation-guide-$ARCH"/* "$DIR/$DOCDIR/install/manual/"
334- rm -rf "$DIR/$DOCDIR/install/tmp"
335- # just keep the HTML version
336- rm -f "$DIR/$DOCDIR/install/manual/copyright" \
337- "$DIR/$DOCDIR/install/manual/changelog.gz" \
338- "$DIR/$DOCDIR/install/manual"/*/install.*.pdf* \
339- "$DIR/$DOCDIR/install/manual"/*/install.*.txt*
340- else
341- echo "ERROR: Unable to copy installer documentation to CD."
342- fi
343-fi
344-
345 # Preseed files for special install types
346 PRESEED_ROOT=$BASEDIR/data/$CODENAME/preseed
347 for preseed_dir in \
348
349=== removed file 'tools/hirsute/upgrade.sh'

Subscribers

People subscribed via source and target branches