mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-11-04 19:04:07 +00:00
- system-image: collect the deivce.tar.gz
* live-build/ubuntu-core/hooks/09-move-kernel-to-device-tar.binary:
- create a device.tar.gz from the installed kernel/modules and
remove it from the rootfs
* live-build/ubuntu-core/hooks/10-remove-documentation.binary:
- strip documentation
* live-build/ubuntu-core/hooks/11-remove-extra-packages.chroot:
- remove extra packages like libicu52/libqt that are still on the
image because vivid system-image has a dependency on u-d-m which
depends on libqt
* live-build/ubuntu-core/hooks/12-add-docker-user.chroot:
- add a docker user/group into the image (this can go once we have
a hook for this)
22 lines
514 B
Bash
22 lines
514 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
echo "Moving kernel into device tarball"
|
|
|
|
# remove the kernel, its part of the bootimg
|
|
HERE=$(pwd)
|
|
(cd binary/boot/filesystem.dir && \
|
|
tar czf $HERE/device.tar.gz \
|
|
boot/vmlinu?-* \
|
|
boot/initrd.img-* \
|
|
vmlinu? \
|
|
initrd.img \
|
|
lib/modules/ )
|
|
|
|
rm -f binary/boot/filesystem.dir/boot/vmlinu?-*
|
|
rm -f binary/boot/filesystem.dir/boot/initrd.img-*
|
|
rm -f binary/boot/filesystem.dir/initrd.img
|
|
rm -f binary/boot/filesystem.dir/vmlinu?
|
|
rm -rf binary/boot/filesystem.dir/lib/modules
|