mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-25 09:51:23 +00:00
Fix up functions refactoring tfor a proper path to the file.
This commit is contained in:
parent
ab949fac18
commit
46bae4cebf
@ -33,6 +33,9 @@ if [ -z "$MIRROR" ]; then
|
||||
esac
|
||||
fi
|
||||
|
||||
mkdir -p config
|
||||
cp -af /usr/share/livecd-rootfs/live-build/functions config/functions
|
||||
|
||||
mkdir -p config/package-lists
|
||||
|
||||
add_task ()
|
||||
|
@ -87,6 +87,17 @@ mount_partition() {
|
||||
setup_mountpoint "$mountpoint"
|
||||
}
|
||||
|
||||
mount_overlay() {
|
||||
lower="$1"
|
||||
upper="$2"
|
||||
work="$2/../work"
|
||||
path="$3"
|
||||
|
||||
mkdir -p "$work"
|
||||
mount -t overlay overlay \
|
||||
-olowerdir="$lower",upperdir="$upper",workdir="$work" \
|
||||
"$path"
|
||||
}
|
||||
|
||||
mount_disk_image() {
|
||||
local disk_image=${1}
|
@ -3,7 +3,7 @@
|
||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||
FS_LABEL="cloudimg-rootfs"
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
BOOTPART_START=
|
||||
BOOTPART_END=
|
||||
|
@ -17,7 +17,7 @@ if [ -n "$SUBARCH" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
mkdir binary/boot/squashfs.dir
|
||||
cp -a chroot/* binary/boot/squashfs.dir
|
||||
|
@ -12,7 +12,7 @@ esac
|
||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||
FS_LABEL="cloudimg-rootfs"
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
apt-get -qqy install dosfstools gdisk
|
||||
|
||||
|
@ -10,7 +10,7 @@ esac
|
||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||
FS_LABEL="cloudimg-rootfs"
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
create_partitions() {
|
||||
disk_image="$1"
|
||||
|
@ -21,7 +21,7 @@ esac
|
||||
|
||||
apt-get install -qqy qemu-utils
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
||||
convert_to_qcow2 binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.img
|
||||
|
@ -18,7 +18,7 @@ case ${IMAGE_TARGETS:-} in
|
||||
;;
|
||||
esac
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
||||
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.vmdk
|
||||
|
@ -44,7 +44,7 @@ case $ARCH in
|
||||
exit 0;;
|
||||
esac
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
# Virtualbox is needed for making a small VMDK
|
||||
apt-get -qqy install genisoimage qemu-utils
|
||||
|
@ -9,7 +9,7 @@ if [ ! -d ${my_dir}/extra ]; then
|
||||
fi
|
||||
|
||||
# Export the common functions to the extras
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
# Cleaner execution
|
||||
/bin/run-parts --regex ".*\.binary" "${extra_d}"
|
||||
|
@ -20,7 +20,7 @@ if [ -n "$SUBARCH" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
mkdir binary/boot/squashfs.dir
|
||||
cp -a chroot/* binary/boot/squashfs.dir
|
||||
|
@ -21,7 +21,7 @@ if [ -n "$SUBARCH" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
. auto/functions
|
||||
. config/functions
|
||||
|
||||
SQUASH_ROOT=binary/boot/squashfs.dir
|
||||
OVERLAY_ROOT=binary/boot/overlay.dir
|
||||
|
Loading…
x
Reference in New Issue
Block a user