mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-10 12:47:30 +00:00
18 lines
524 B
Plaintext
18 lines
524 B
Plaintext
|
#!/bin/bash -ex
|
||
|
|
||
|
. config/functions
|
||
|
. config/binary
|
||
|
|
||
|
if [ "${IMAGE_HAS_HARDCODED_PASSWORD:-}" != "1" ]; then
|
||
|
echo ".disk1.img.xz preinstalled image requested to be built"
|
||
|
echo "but the build is not generated with hardcoded password"
|
||
|
echo "the build is missconfigured"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
||
|
xz -T4 -c binary/boot/disk-uefi.ext4 > livecd.ubuntu-cpc.disk1.img.xz
|
||
|
elif [ -f binary/boot/disk.ext4 ]; then
|
||
|
xz -T4 -c binary/boot/disk.ext4 > livecd.ubuntu-cpc.disk1.img.xz
|
||
|
fi
|