mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 09:21:53 +00:00
Merge lp:~rbalint/livecd-rootfs/deps
This commit is contained in:
commit
926b22a834
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
|||||||
|
livecd-rootfs (2.448) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Depend on packages in main instead of installing them at runtime
|
||||||
|
* Depend on pxz and vmdk-stream-converter instead of installing them
|
||||||
|
at run time
|
||||||
|
|
||||||
|
-- Balint Reczey <rbalint@ubuntu.com> Wed, 14 Jun 2017 18:25:32 +0200
|
||||||
|
|
||||||
livecd-rootfs (2.447) artful; urgency=medium
|
livecd-rootfs (2.447) artful; urgency=medium
|
||||||
|
|
||||||
* Add cm3 as a known ubuntu-core image type. LP: #1698223.
|
* Add cm3 as a known ubuntu-core image type. LP: #1698223.
|
||||||
|
11
debian/control
vendored
11
debian/control
vendored
@ -12,21 +12,30 @@ Depends: ${misc:Depends},
|
|||||||
android-tools-fsutils [armhf],
|
android-tools-fsutils [armhf],
|
||||||
apt-utils,
|
apt-utils,
|
||||||
debootstrap,
|
debootstrap,
|
||||||
|
dosfstools,
|
||||||
e2fsprogs,
|
e2fsprogs,
|
||||||
|
gdisk,
|
||||||
|
genisoimage,
|
||||||
germinate (>= 1.25.1),
|
germinate (>= 1.25.1),
|
||||||
gnupg,
|
gnupg,
|
||||||
grep-dctrl,
|
grep-dctrl,
|
||||||
|
kpartx,
|
||||||
live-build (>= 3.0~a57-1ubuntu12~),
|
live-build (>= 3.0~a57-1ubuntu12~),
|
||||||
lsb-release,
|
lsb-release,
|
||||||
lzma,
|
lzma,
|
||||||
|
parted,
|
||||||
procps,
|
procps,
|
||||||
|
pxz,
|
||||||
python-minimal | python,
|
python-minimal | python,
|
||||||
python3-software-properties,
|
python3-software-properties,
|
||||||
|
qemu-utils,
|
||||||
rsync,
|
rsync,
|
||||||
snapd,
|
snapd,
|
||||||
squashfs-tools (>= 1:3.3-1),
|
squashfs-tools (>= 1:3.3-1),
|
||||||
sudo,
|
sudo,
|
||||||
ubuntu-image
|
ubuntu-image,
|
||||||
|
vmdk-stream-converter [amd64 i386],
|
||||||
|
zerofree
|
||||||
Suggests: partimage
|
Suggests: partimage
|
||||||
Breaks: ubuntu-defaults-builder (<< 0.32)
|
Breaks: ubuntu-defaults-builder (<< 0.32)
|
||||||
Description: construction script for the livecd rootfs
|
Description: construction script for the livecd rootfs
|
||||||
|
@ -17,8 +17,6 @@ fi
|
|||||||
|
|
||||||
if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
|
if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
|
||||||
# Use ubuntu-image instead of live-build
|
# Use ubuntu-image instead of live-build
|
||||||
apt-get install -qqy pxz
|
|
||||||
|
|
||||||
env SNAPPY_STORE_NO_CDN=1 \
|
env SNAPPY_STORE_NO_CDN=1 \
|
||||||
ubuntu-image -c edge \
|
ubuntu-image -c edge \
|
||||||
-o livecd."$PROJECT".img livecd."$PROJECT".model-assertion
|
-o livecd."$PROJECT".img livecd."$PROJECT".model-assertion
|
||||||
|
@ -8,8 +8,6 @@ loop_device=
|
|||||||
loop_raw=
|
loop_raw=
|
||||||
backing_img=
|
backing_img=
|
||||||
|
|
||||||
apt-get -qqy install dosfstools gdisk
|
|
||||||
|
|
||||||
clean_loops() {
|
clean_loops() {
|
||||||
local kpartx_ret
|
local kpartx_ret
|
||||||
local kpartx_stdout
|
local kpartx_stdout
|
||||||
@ -51,7 +49,6 @@ make_ext4_partition() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mount_image() {
|
mount_image() {
|
||||||
apt-get install -qqy kpartx
|
|
||||||
trap clean_loops EXIT
|
trap clean_loops EXIT
|
||||||
backing_img="$1"
|
backing_img="$1"
|
||||||
local rootpart="$2"
|
local rootpart="$2"
|
||||||
@ -158,7 +155,6 @@ umount_partition() {
|
|||||||
|
|
||||||
# both of these are likely overkill, but it does result in slightly
|
# both of these are likely overkill, but it does result in slightly
|
||||||
# smaller ext4 filesystem
|
# smaller ext4 filesystem
|
||||||
apt-get -qqy install zerofree
|
|
||||||
e2fsck -y -E discard ${rootfs_dev_mapper}
|
e2fsck -y -E discard ${rootfs_dev_mapper}
|
||||||
zerofree ${rootfs_dev_mapper}
|
zerofree ${rootfs_dev_mapper}
|
||||||
fi
|
fi
|
||||||
@ -230,7 +226,6 @@ create_vmdk() {
|
|||||||
destination="$2"
|
destination="$2"
|
||||||
size="${3:-10240}"
|
size="${3:-10240}"
|
||||||
|
|
||||||
apt-get install -qqy qemu-utils vmdk-stream-converter
|
|
||||||
streamconverter="/usr/share/pyshared/VMDKstream.py"
|
streamconverter="/usr/share/pyshared/VMDKstream.py"
|
||||||
scratch_d=$(mktemp -d)
|
scratch_d=$(mktemp -d)
|
||||||
cp ${src} ${scratch_d}/resize.img
|
cp ${src} ${scratch_d}/resize.img
|
||||||
@ -263,8 +258,6 @@ create_derivative() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
convert_to_qcow2() {
|
convert_to_qcow2() {
|
||||||
apt-get install -qqy qemu-utils
|
|
||||||
|
|
||||||
src="$1"
|
src="$1"
|
||||||
destination="$2"
|
destination="$2"
|
||||||
qemu-img convert -c -O qcow2 -o compat=0.10 "$src" "$destination"
|
qemu-img convert -c -O qcow2 -o compat=0.10 "$src" "$destination"
|
||||||
|
@ -32,8 +32,6 @@ case $ARCH:$SUBARCH in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
create_empty_partition_table() {
|
create_empty_partition_table() {
|
||||||
apt-get install -qqy parted
|
|
||||||
|
|
||||||
parted "$1" --script -- mklabel msdos
|
parted "$1" --script -- mklabel msdos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,8 +43,6 @@ umount "binary/boot/squashfs.dir/dev/pts"
|
|||||||
umount "binary/boot/squashfs.dir/dev"
|
umount "binary/boot/squashfs.dir/dev"
|
||||||
umount "binary/boot/squashfs.dir/tmp"
|
umount "binary/boot/squashfs.dir/tmp"
|
||||||
|
|
||||||
apt-get -qqy install squashfs-tools
|
|
||||||
|
|
||||||
squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs"
|
squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs"
|
||||||
squashfs_f_manifest="${squashfs_f}.manifest"
|
squashfs_f_manifest="${squashfs_f}.manifest"
|
||||||
|
|
||||||
|
@ -14,8 +14,6 @@ FS_LABEL="cloudimg-rootfs"
|
|||||||
|
|
||||||
. config/functions
|
. config/functions
|
||||||
|
|
||||||
apt-get -qqy install dosfstools gdisk
|
|
||||||
|
|
||||||
create_partitions() {
|
create_partitions() {
|
||||||
disk_image="$1"
|
disk_image="$1"
|
||||||
sgdisk "${disk_image}" --zap-all
|
sgdisk "${disk_image}" --zap-all
|
||||||
|
@ -14,7 +14,6 @@ FS_LABEL="cloudimg-rootfs"
|
|||||||
|
|
||||||
create_partitions() {
|
create_partitions() {
|
||||||
disk_image="$1"
|
disk_image="$1"
|
||||||
apt-get install -qqy gdisk
|
|
||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
--zap-all
|
--zap-all
|
||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
|
@ -13,14 +13,11 @@ case $ARCH:$SUBARCH in
|
|||||||
# Not sure if any other cloud images use subarch for something that
|
# Not sure if any other cloud images use subarch for something that
|
||||||
# should take qcow2 format, so only skipping this on raspi2 for now.
|
# should take qcow2 format, so only skipping this on raspi2 for now.
|
||||||
armhf:raspi2)
|
armhf:raspi2)
|
||||||
apt-get install -qqy pxz
|
|
||||||
pxz -T4 -c binary/boot/disk.ext4 > livecd.ubuntu-cpc.disk1.img.xz
|
pxz -T4 -c binary/boot/disk.ext4 > livecd.ubuntu-cpc.disk1.img.xz
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
apt-get install -qqy qemu-utils
|
|
||||||
|
|
||||||
. config/functions
|
. config/functions
|
||||||
|
|
||||||
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
||||||
|
@ -46,9 +46,6 @@ esac
|
|||||||
|
|
||||||
. config/functions
|
. config/functions
|
||||||
|
|
||||||
# Virtualbox is needed for making a small VMDK
|
|
||||||
apt-get -qqy install genisoimage qemu-utils
|
|
||||||
|
|
||||||
# Lets be safe about this
|
# Lets be safe about this
|
||||||
box_d=$(mktemp -d)
|
box_d=$(mktemp -d)
|
||||||
seed_d=$(mktemp -d)
|
seed_d=$(mktemp -d)
|
||||||
|
@ -25,8 +25,6 @@ fi
|
|||||||
mkdir binary/boot/squashfs.dir
|
mkdir binary/boot/squashfs.dir
|
||||||
cp -a chroot/* binary/boot/squashfs.dir
|
cp -a chroot/* binary/boot/squashfs.dir
|
||||||
|
|
||||||
apt-get -qqy install squashfs-tools
|
|
||||||
|
|
||||||
squashfs_f="${PWD}/livecd.${PROJECT}.squashfs"
|
squashfs_f="${PWD}/livecd.${PROJECT}.squashfs"
|
||||||
squashfs_f_manifest="${squashfs_f}.manifest"
|
squashfs_f_manifest="${squashfs_f}.manifest"
|
||||||
|
|
||||||
|
@ -159,8 +159,6 @@ umount "binary/boot/squashfs.dir/dev/pts"
|
|||||||
umount "binary/boot/squashfs.dir/dev"
|
umount "binary/boot/squashfs.dir/dev"
|
||||||
umount "binary/boot/squashfs.dir/tmp"
|
umount "binary/boot/squashfs.dir/tmp"
|
||||||
|
|
||||||
apt-get -qqy install squashfs-tools
|
|
||||||
|
|
||||||
squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
|
squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
|
||||||
|
|
||||||
(cd "$OVERLAY_ROOT/" &&
|
(cd "$OVERLAY_ROOT/" &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user