mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-22 14:14:06 +00:00
Compare commits
20 Commits
ubuntu/mas
...
2.525.7
Author | SHA1 | Date | |
---|---|---|---|
|
52b22f61ab | ||
|
545e68e676 | ||
|
c09a6c4e96 | ||
|
6ea20d222a | ||
|
e28ebf6a38 | ||
|
df0803df52 | ||
|
d97233a7bb | ||
|
d4c1f99a61 | ||
|
b4dc030fdb | ||
|
2ab2c5a74e | ||
|
1c99627313 | ||
|
6673d4d6ee | ||
|
7717615f58 | ||
|
f865cf4d55 | ||
|
14b7d8f801 | ||
|
7c09badeec | ||
|
4be07bbd0e | ||
|
3b4d2befa3 | ||
|
f299cb7bd3 | ||
|
a2309c6177 |
54
debian/changelog
vendored
54
debian/changelog
vendored
@ -1,3 +1,57 @@
|
|||||||
|
livecd-rootfs (2.525.7) bionic; urgency=medium
|
||||||
|
|
||||||
|
* Disable journald rate limiting in the live-server live session.
|
||||||
|
(LP: #1776891)
|
||||||
|
|
||||||
|
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Tue, 14 Aug 2018 21:41:53 -0700
|
||||||
|
|
||||||
|
livecd-rootfs (2.525.6) bionic; urgency=medium
|
||||||
|
|
||||||
|
[ Steve Langasek ]
|
||||||
|
* generate all tar files with --xattrs. LP: #1302192.
|
||||||
|
|
||||||
|
[ Daniel Watkins ]
|
||||||
|
* ubuntu-cpc: Reintroduce the -root.tar.xz artifact (LP: #1585233).
|
||||||
|
* ubuntu-cpc: Generate the root image contents once, and use it for both the
|
||||||
|
-root.tar.xz and the .squashfs.
|
||||||
|
* ubuntu-cpc: Generate -root.tar.xz with --xattrs.
|
||||||
|
|
||||||
|
-- Steve Langasek <steve.langasek@ubuntu.com> Mon, 06 Aug 2018 14:16:04 -0700
|
||||||
|
|
||||||
|
livecd-rootfs (2.525.5) bionic; urgency=medium
|
||||||
|
|
||||||
|
* live-build/auto/config: Improve linux-tools filter to work for i386 too.
|
||||||
|
|
||||||
|
-- Adam Conrad <adconrad@ubuntu.com> Tue, 24 Jul 2018 22:21:27 -0600
|
||||||
|
|
||||||
|
livecd-rootfs (2.525.4) bionic; urgency=medium
|
||||||
|
|
||||||
|
* live-build/auto/config: Dirty hack to filter linux-tools-aws from budgie.
|
||||||
|
|
||||||
|
-- Adam Conrad <adconrad@ubuntu.com> Tue, 24 Jul 2018 21:55:49 -0600
|
||||||
|
|
||||||
|
livecd-rootfs (2.525.3) bionic; urgency=medium
|
||||||
|
|
||||||
|
* live-build/auto/config: Add nasty hack to order gtk-common-themese snap
|
||||||
|
first in snapd's seed.yaml to work around the snapd bug in LP: #1772844
|
||||||
|
|
||||||
|
-- Adam Conrad <adconrad@ubuntu.com> Mon, 23 Jul 2018 10:02:04 -0600
|
||||||
|
|
||||||
|
livecd-rootfs (2.525.2) bionic; urgency=medium
|
||||||
|
|
||||||
|
* Update unminimize script text and install ubuntu-standard when
|
||||||
|
unminimizing a minimal image (LP: #1778777)
|
||||||
|
|
||||||
|
-- Francis Ginther <francis.ginther@canonical.com> Mon, 02 Jul 2018 13:27:15 -0500
|
||||||
|
|
||||||
|
livecd-rootfs (2.525.1) bionic; urgency=medium
|
||||||
|
|
||||||
|
* Symlink systemd-networkd-wait-online to /bin/true in the live installer
|
||||||
|
live session to avoid depending on buggy systemd behaviour. (LP: #1773719)
|
||||||
|
* Remove "optional: true" from installer netplan config.
|
||||||
|
|
||||||
|
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 23 May 2018 14:27:01 +1200
|
||||||
|
|
||||||
livecd-rootfs (2.525) bionic; urgency=medium
|
livecd-rootfs (2.525) bionic; urgency=medium
|
||||||
|
|
||||||
* Don't fail to build CPC images if /lib/modules already exists in the
|
* Don't fail to build CPC images if /lib/modules already exists in the
|
||||||
|
@ -109,12 +109,16 @@ set -e
|
|||||||
echo "This system has been minimized by removing packages and content that are"
|
echo "This system has been minimized by removing packages and content that are"
|
||||||
echo "not required on a system that users do not log into."
|
echo "not required on a system that users do not log into."
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script restores the content and packages that are found on a default"
|
echo "This script restores content and packages that are found on a default"
|
||||||
echo "Ubuntu server system."
|
echo "Ubuntu server system in order to make this system more suitable for"
|
||||||
|
echo "interactive use."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Reinstallation of packages may fail due to changes to the system"
|
echo "Reinstallation of packages may fail due to changes to the system"
|
||||||
echo "configuration, the presence of third-party packages, or for other"
|
echo "configuration, the presence of third-party packages, or for other"
|
||||||
echo "reasons."
|
echo "reasons."
|
||||||
|
echo ""
|
||||||
|
echo "This operation may take some time."
|
||||||
|
echo ""
|
||||||
read -p "Would you like to continue? [y/N]" REPLY
|
read -p "Would you like to continue? [y/N]" REPLY
|
||||||
echo # (optional) move to a new line
|
echo # (optional) move to a new line
|
||||||
if [ "$REPLY" != "y" ] && [ "$REPLY" != "Y" ]
|
if [ "$REPLY" != "y" ] && [ "$REPLY" != "Y" ]
|
||||||
@ -155,7 +159,7 @@ fi
|
|||||||
|
|
||||||
if ! dpkg-query --show --showformat='${db:Status-Status}\n' ubuntu-minimal 2> /dev/null | grep -q '^installed$'; then
|
if ! dpkg-query --show --showformat='${db:Status-Status}\n' ubuntu-minimal 2> /dev/null | grep -q '^installed$'; then
|
||||||
echo "Installing ubuntu-minimal package to provide the familiar Ubuntu minimal system..."
|
echo "Installing ubuntu-minimal package to provide the familiar Ubuntu minimal system..."
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y ubuntu-minimal
|
DEBIAN_FRONTEND=noninteractive apt-get install -y ubuntu-minimal ubuntu-standard
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if dpkg-query --show --showformat='${db:Status-Status}\n' ubuntu-server 2> /dev/null | grep -q '^installed$' \
|
if dpkg-query --show --showformat='${db:Status-Status}\n' ubuntu-server 2> /dev/null | grep -q '^installed$' \
|
||||||
@ -455,7 +459,7 @@ for ISO in binary.iso binary.hybrid.iso; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ -e "binary/$INITFS/filesystem.dir" ]; then
|
if [ -e "binary/$INITFS/filesystem.dir" ]; then
|
||||||
(cd "binary/$INITFS/filesystem.dir/" && tar -c *) | \
|
(cd "binary/$INITFS/filesystem.dir/" && tar -c --xattrs *) | \
|
||||||
gzip -9 --rsyncable > "$PREFIX.rootfs.tar.gz"
|
gzip -9 --rsyncable > "$PREFIX.rootfs.tar.gz"
|
||||||
chmod 644 "$PREFIX.rootfs.tar.gz"
|
chmod 644 "$PREFIX.rootfs.tar.gz"
|
||||||
elif [ -e binary-tar.tar.gz ]; then
|
elif [ -e binary-tar.tar.gz ]; then
|
||||||
@ -492,7 +496,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-touch-custom" ]; then
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-touch-custom" ]; then
|
||||||
(cd "binary/$INITFS/custom.dir/" && tar -c *) | \
|
(cd "binary/$INITFS/custom.dir/" && tar -c --xattrs *) | \
|
||||||
gzip -9 --rsyncable > "$PREFIX.custom.tar.gz"
|
gzip -9 --rsyncable > "$PREFIX.custom.tar.gz"
|
||||||
chmod 644 "$PREFIX.custom.tar.gz"
|
chmod 644 "$PREFIX.custom.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
@ -59,9 +59,14 @@ add_task ()
|
|||||||
# failure.
|
# failure.
|
||||||
|
|
||||||
for task; do
|
for task; do
|
||||||
|
if [ "$task" = "ubuntu-budgie-desktop" ]; then
|
||||||
|
filter="| grep -v '^linux.*tools'"
|
||||||
|
else
|
||||||
|
filter=""
|
||||||
|
fi
|
||||||
# We need a ridiculous number of backslashes to protect
|
# We need a ridiculous number of backslashes to protect
|
||||||
# parentheses from eval.
|
# parentheses from eval.
|
||||||
echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage \\\\\\( -XFArchitecture $ARCH -o -XFArchitecture all \\\\\\) -a -wFTask $task" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
|
echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage \\\\\\( -XFArchitecture $ARCH -o -XFArchitecture all \\\\\\) -a -wFTask $task $filter" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -700,7 +705,12 @@ if [ -n "${BASE_SEED}" ]; then
|
|||||||
seed_snaps=$(sed -rn '1,/-----/d;/-----/,$d; s/(.*) \|.*/\1/; s, \(classic\),/classic,; p' "${file}")
|
seed_snaps=$(sed -rn '1,/-----/d;/-----/,$d; s/(.*) \|.*/\1/; s, \(classic\),/classic,; p' "${file}")
|
||||||
for snap in ${seed_snaps}; do
|
for snap in ${seed_snaps}; do
|
||||||
echo "snap: found ${snap}"
|
echo "snap: found ${snap}"
|
||||||
ALL_SNAPS="${ALL_SNAPS:+${ALL_SNAPS} }${snap}"
|
# Reorder gtk-common-themes first due to LP: #1772844
|
||||||
|
if [ "${snap}" = "gtk-common-themes" ]; then
|
||||||
|
ALL_SNAPS="${snap}${ALL_SNAPS:+ ${ALL_SNAPS}}"
|
||||||
|
else
|
||||||
|
ALL_SNAPS="${ALL_SNAPS:+${ALL_SNAPS} }${snap}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
if [ -n "${ALL_SNAPS}" ] || [ -n "${HOOK_SNAPS}" ]; then
|
if [ -n "${ALL_SNAPS}" ] || [ -n "${HOOK_SNAPS}" ]; then
|
||||||
|
26
live-build/ubuntu-cpc/hooks/031-0-create-root-dir.binary
Normal file
26
live-build/ubuntu-cpc/hooks/031-0-create-root-dir.binary
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
# vi: ts=4 expandtab
|
||||||
|
#
|
||||||
|
# Generate the root directory/manifest for rootfs.tar.xz and squashfs
|
||||||
|
|
||||||
|
if [ -n "$SUBARCH" ]; then
|
||||||
|
echo "Skipping rootfs build for subarch flavor build"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
. config/functions
|
||||||
|
|
||||||
|
rootfs_dir=rootfs.dir
|
||||||
|
mkdir $rootfs_dir
|
||||||
|
cp -a chroot/* $rootfs_dir
|
||||||
|
|
||||||
|
setup_mountpoint $rootfs_dir
|
||||||
|
|
||||||
|
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get --purge remove --assume-yes '^linux-.*' 'linux-base+'
|
||||||
|
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get --purge remove --assume-yes '^grub-.*'
|
||||||
|
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get autoremove --purge --assume-yes
|
||||||
|
rm -rf $rootfs_dir/boot/grub
|
||||||
|
|
||||||
|
teardown_mountpoint $rootfs_dir
|
||||||
|
|
||||||
|
dpkg-query --admindir=$rootfs_dir/var/lib/dpkg -W > $rootfs_dir.manifest
|
15
live-build/ubuntu-cpc/hooks/031-1-root-xz.binary
Normal file
15
live-build/ubuntu-cpc/hooks/031-1-root-xz.binary
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
# vi: ts=4 expandtab
|
||||||
|
#
|
||||||
|
# Generate the rootfs.tar.xz and manifest
|
||||||
|
|
||||||
|
if [ -n "$SUBARCH" ]; then
|
||||||
|
echo "Skipping rootfs build for subarch flavor build"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This is the directory created by 031-0-create-root-dir.binary
|
||||||
|
rootfs_dir=rootfs.dir
|
||||||
|
|
||||||
|
cp $rootfs_dir.manifest livecd.ubuntu-cpc.rootfs.manifest
|
||||||
|
(cd $rootfs_dir/ && tar -c --xattrs *) | xz > livecd.ubuntu-cpc.rootfs.tar.xz
|
29
live-build/ubuntu-cpc/hooks/031-2-root-squashfs.binary
Normal file
29
live-build/ubuntu-cpc/hooks/031-2-root-squashfs.binary
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
# vi: ts=4 noexpandtab
|
||||||
|
#
|
||||||
|
# Generate a squashfs root and manifest
|
||||||
|
|
||||||
|
case $IMAGE_TARGETS in
|
||||||
|
""|*squashfs*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Skipping squashfs build"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -n "$SUBARCH" ]; then
|
||||||
|
echo "Skipping rootfs build for subarch flavor build"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This is the directory created by 031-0-create-root-dir.binary
|
||||||
|
rootfs_dir=rootfs.dir
|
||||||
|
|
||||||
|
squashfs_f="$PWD/livecd.ubuntu-cpc.squashfs"
|
||||||
|
|
||||||
|
cp $rootfs_dir.manifest $squashfs_f.manifest
|
||||||
|
|
||||||
|
(cd $rootfs_dir &&
|
||||||
|
mksquashfs . $squashfs_f \
|
||||||
|
-no-progress -xattrs -comp xz )
|
@ -1,49 +0,0 @@
|
|||||||
#!/bin/bash -ex
|
|
||||||
# vi: ts=4 noexpandtab
|
|
||||||
#
|
|
||||||
# Generate a squashfs root and manifest
|
|
||||||
|
|
||||||
case $IMAGE_TARGETS in
|
|
||||||
""|*squashfs*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Skipping squashfs build"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -n "$SUBARCH" ]; then
|
|
||||||
echo "Skipping rootfs build for subarch flavor build"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
. config/functions
|
|
||||||
|
|
||||||
mkdir binary/boot/squashfs.dir
|
|
||||||
cp -a chroot/* binary/boot/squashfs.dir
|
|
||||||
|
|
||||||
setup_mountpoint binary/boot/squashfs.dir
|
|
||||||
|
|
||||||
chroot binary/boot/squashfs.dir dpkg-divert --local --rename /usr/sbin/grub-probe
|
|
||||||
chroot binary/boot/squashfs.dir touch /usr/sbin/grub-probe
|
|
||||||
chroot binary/boot/squashfs.dir chmod +x /usr/sbin/grub-probe
|
|
||||||
|
|
||||||
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^linux-.*' 'linux-base+'
|
|
||||||
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^grub-.*'
|
|
||||||
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get autoremove --purge --assume-yes
|
|
||||||
rm -rf binary/boot/squashfs.dir/boot/grub
|
|
||||||
chroot binary/boot/squashfs.dir mkdir -p /lib/modules
|
|
||||||
|
|
||||||
chroot binary/boot/squashfs.dir rm /usr/sbin/grub-probe
|
|
||||||
chroot binary/boot/squashfs.dir dpkg-divert --remove --local --rename /usr/sbin/grub-probe
|
|
||||||
|
|
||||||
teardown_mountpoint binary/boot/squashfs.dir
|
|
||||||
|
|
||||||
squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs"
|
|
||||||
squashfs_f_manifest="${squashfs_f}.manifest"
|
|
||||||
|
|
||||||
dpkg-query --admindir=binary/boot/squashfs.dir/var/lib/dpkg -W > ${squashfs_f_manifest}
|
|
||||||
|
|
||||||
(cd "binary/boot/squashfs.dir/" &&
|
|
||||||
mksquashfs . ${squashfs_f} \
|
|
||||||
-no-progress -xattrs -comp xz )
|
|
@ -7,9 +7,7 @@ network:
|
|||||||
match:
|
match:
|
||||||
name: "en*"
|
name: "en*"
|
||||||
dhcp4: true
|
dhcp4: true
|
||||||
optional: true
|
|
||||||
all-eth:
|
all-eth:
|
||||||
match:
|
match:
|
||||||
name: "eth*"
|
name: "eth*"
|
||||||
dhcp4: true
|
dhcp4: true
|
||||||
optional: true
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
RateLimitIntervalSec=0
|
@ -0,0 +1 @@
|
|||||||
|
/bin/true
|
Loading…
x
Reference in New Issue
Block a user