Imported 2.702

No reason for CPC update specified.
impish
CloudBuilder 4 years ago
parent 73d3c790ba
commit f36b246c16

21
debian/changelog vendored

@ -1,3 +1,24 @@
livecd-rootfs (2.702) hirsute; urgency=medium
[ Sebastien Bacher ]
* Use the target realpath to do the unmounting
* Correctly set the environment needed by snapd in layered
[ Dimitri John Ledkov ]
* get-ppa-fingerprint: use production instance with latest api.
* disk-image-uefi: riscv64 add u-boot spl (LP: #1905274)
* disk-image-uefi: riscv64 add ubuntu:ubuntu login, without expiry.
* rebuild with the correct version of 2.701 changes.
-- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 24 Nov 2020 18:41:34 +0000
livecd-rootfs (2.701) hirsute; urgency=medium
[ Cody Shepherd ]
* buildd: Create manifests for buildd tarballs
-- Robert C Jennings <robert.jennings@canonical.com> Fri, 20 Nov 2020 14:55:21 -0600
livecd-rootfs (2.700) hirsute; urgency=medium livecd-rootfs (2.700) hirsute; urgency=medium
[ David Krauser ] [ David Krauser ]

@ -11,5 +11,5 @@ _, args = parser.parse_args()
if not args: if not args:
parser.error("must provide a PPA owner/name") parser.error("must provide a PPA owner/name")
owner_name, ppa_name = args[0].split("/", 1) owner_name, ppa_name = args[0].split("/", 1)
lp = Launchpad.login_anonymously('livecd-rootfs') lp = Launchpad.login_anonymously('livecd-rootfs', 'production', version='devel')
print(lp.people(owner_name).getPPAByName(name=ppa_name).signing_key_fingerprint) print(lp.people(owner_name).getPPAByName(name=ppa_name).signing_key_fingerprint)

@ -4,6 +4,10 @@
# ourselves. # ourselves.
set -e set -e
. config/functions
create_manifest chroot "livecd.$PROJECT.rootfs.manifest"
# gzip was chosen for fastest decompression speed: it decompresses buildd # gzip was chosen for fastest decompression speed: it decompresses buildd
# chroots about twice as fast as xz and about five times as fast as bzip2. # chroots about twice as fast as xz and about five times as fast as bzip2.
tar --transform='s,^chroot,chroot-autobuild,' --sort=name --numeric-owner \ tar --transform='s,^chroot,chroot-autobuild,' --sort=name --numeric-owner \

@ -3,12 +3,16 @@
set -e set -e
. config/bootstrap . config/bootstrap
. config/functions
TMPDIR="$(mktemp -d)" TMPDIR="$(mktemp -d)"
config/make-lxd-metadata "${LB_DISTRIBUTION%-*}" "$ARCH" \ config/make-lxd-metadata "${LB_DISTRIBUTION%-*}" "$ARCH" \
>"$TMPDIR/metadata.yaml" >"$TMPDIR/metadata.yaml"
tar --numeric-owner -cf "livecd.$PROJECT.lxd.tar" -C "$TMPDIR" metadata.yaml tar --numeric-owner -cf "livecd.$PROJECT.lxd.tar" -C "$TMPDIR" metadata.yaml
rm -rf "$TMPDIR" rm -rf "$TMPDIR"
create_manifest chroot "livecd.$PROJECT.lxd.manifest"
# When using the combined metadata/rootfs form, the rootfs must be under # When using the combined metadata/rootfs form, the rootfs must be under
# rootfs/ rather than under chroot-autobuild/. # rootfs/ rather than under chroot-autobuild/.
tar --transform='s,^chroot,rootfs,' --sort=name --numeric-owner \ tar --transform='s,^chroot,rootfs,' --sort=name --numeric-owner \

@ -152,7 +152,7 @@ setup_mountpoint() {
teardown_mountpoint() { teardown_mountpoint() {
# Reverse the operations from setup_mountpoint # Reverse the operations from setup_mountpoint
local mountpoint="$1" local mountpoint=$(realpath "$1")
# ensure we have exactly one trailing slash, and escape all slashes for awk # ensure we have exactly one trailing slash, and escape all slashes for awk
mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/' mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/'

@ -208,10 +208,22 @@ create_chroot_pass () {
lb chroot_install-packages ${pass} ${*} lb chroot_install-packages ${pass} ${*}
lb_chroot_remove_packages ${pass} ${*} lb_chroot_remove_packages ${pass} ${*}
lb chroot_sysfs remove ${*}
lb chroot_proc remove ${*}
lb chroot_devpts remove ${*}
setup_mountpoint chroot
# Snap management # Snap management
lb_chroot_snap_lists ${pass} ${*} lb_chroot_snap_lists ${pass} ${*}
lb_chroot_install_snaps ${pass} ${*} lb_chroot_install_snaps ${pass} ${*}
teardown_mountpoint chroot
lb chroot_devpts install ${*}
lb chroot_proc install ${*}
lb chroot_sysfs install ${*}
configure_network_manager configure_network_manager
# Mark kernel headers as autoremovable # Mark kernel headers as autoremovable

@ -39,9 +39,16 @@ create_partitions() {
# same as arm64/armhf, but set bit 2 legacy bios bootable # same as arm64/armhf, but set bit 2 legacy bios bootable
# on the first partition for uboot # on the first partition for uboot
sgdisk "${disk_image}" \ sgdisk "${disk_image}" \
--new=15:0:204800 \ --set-alignment=2 \
--new=13:34:2081 \
--change-name=13:loader1 \
--typecode=13:5B193300-FC78-40CD-8002-E86C45580B47 \
--new=14:2082:10273 \
--change-name=14:loader2 \
--typecode=14:2E54B353-1271-4842-806F-E436D6AF6985 \
--new=15::+106M\
--typecode=15:ef00 \ --typecode=15:ef00 \
--new=1: \ --new=1:: \
--attributes=1:set:2 --attributes=1:set:2
;; ;;
amd64) amd64)
@ -103,11 +110,46 @@ install_grub() {
;; ;;
riscv64) riscv64)
# TODO does not exist yet on riscv64 # TODO does not exist yet on riscv64
chroot mountpoint apt-get install -qqy u-boot-menu #grub-efi-riscv64 chroot mountpoint apt-get install -qqy u-boot-menu u-boot-sifive #grub-efi-riscv64
efi_target=riscv64-efi efi_target=riscv64-efi
chroot mountpoint u-boot-update chroot mountpoint u-boot-update
# FSBL, which gets U-Boot SPL
loader1="/dev/mapper${loop_device///dev/}p13"
# The real U-Boot
loader2="/dev/mapper${loop_device///dev/}p14"
dd if=mountpoint/usr/lib/u-boot/sifive_fu540/u-boot-spl.bin of=$loader1
dd if=mountpoint/usr/lib/u-boot/sifive_fu540/u-boot.itb of=$loader2
# Provide nocloud datasource
# Allow interactive login on baremetal SiFive board,
# without a cloud datasource.
mkdir -p mountpoint/var/lib/cloud/seed/nocloud
touch mountpoint/var/lib/cloud/seed/nocloud/meta-data
cat <<EOF >mountpoint/var/lib/cloud/seed/nocloud/user-data
#cloud-config
chpasswd:
expire: false
list:
- ubuntu:ubuntu
EOF
cat <<EOF >mountpoint/var/lib/cloud/seed/nocloud/network-data
# This is the initial network config.
# It can be overwritten by cloud-init.
network:
version: 2
ethernets:
zz-all-en:
match:
name: "en*"
dhcp4: true
zz-all-eth:
match:
name: "eth*"
dhcp4: true
EOF
## TODO remove below once we have grub-efi-riscv64 ## TODO remove below once we have grub-efi-riscv64
rm mountpoint/tmp/device.map rm mountpoint/tmp/device.map
umount mountpoint/boot/efi umount mountpoint/boot/efi

Loading…
Cancel
Save