mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-07 17:02:30 +00:00
* live-build/ubuntu-core/hooks/09-move-kernel-to-device-tar.binary:
- build device tarball with system/ prefix - include /vmlinz, /initrd.img into device tarball - include /boot/abi-* /boot/System.map-*
This commit is contained in:
parent
fe0b8a029a
commit
d6b5acbee3
9
debian/changelog
vendored
9
debian/changelog
vendored
@ -1,3 +1,12 @@
|
|||||||
|
livecd-rootfs (2.268) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* live-build/ubuntu-core/hooks/09-move-kernel-to-device-tar.binary:
|
||||||
|
- build device tarball with system/ prefix
|
||||||
|
- include /vmlinz, /initrd.img into device tarball
|
||||||
|
- include /boot/abi-* /boot/System.map-*
|
||||||
|
|
||||||
|
-- Michael Vogt <michael.vogt@ubuntu.com> Fri, 14 Nov 2014 17:41:55 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.267) vivid; urgency=low
|
livecd-rootfs (2.267) vivid; urgency=low
|
||||||
|
|
||||||
* live-build/auto/config:
|
* live-build/auto/config:
|
||||||
|
@ -1,21 +1,37 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# move the kernel out into a new device tarfile with system/boot
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "Moving kernel into device tarball"
|
echo "I: Moving kernel into device tarball"
|
||||||
|
|
||||||
# remove the kernel, its part of the bootimg
|
HERE="$(pwd)"
|
||||||
HERE=$(pwd)
|
TMPDIR="$(mktemp -d)"
|
||||||
(cd binary/boot/filesystem.dir && \
|
mkdir -p $TMPDIR/system/
|
||||||
tar czf $HERE/device.tar.gz \
|
|
||||||
boot/vmlinu?-* \
|
|
||||||
boot/initrd.img-* \
|
|
||||||
vmlinu? \
|
|
||||||
initrd.img \
|
|
||||||
lib/modules/ )
|
|
||||||
|
|
||||||
|
# cp files, we can't simply use tar --transform as it changes the symlink target
|
||||||
|
(
|
||||||
|
cd binary/boot/filesystem.dir
|
||||||
|
cp -ar --parent boot/vmlinu?-* boot/initrd.img-* boot/abi-* boot/System.map-* $TMPDIR/system/
|
||||||
|
cp -ar --parent lib/modules/ $TMPDIR/system/
|
||||||
|
if [ -e vmlinu? ] && [ -e initrd.img ]; then
|
||||||
|
cp -ar --parent vmlinu? initrd.img $TMPDIR/system
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
|
||||||
|
# and tar it up
|
||||||
|
(
|
||||||
|
cd $TMPDIR
|
||||||
|
tar -c -z -f $HERE/device.tar.gz system
|
||||||
|
)
|
||||||
|
rm -rf $TMPDIR
|
||||||
|
|
||||||
|
# remove files from the root filesystem
|
||||||
rm -f binary/boot/filesystem.dir/boot/vmlinu?-*
|
rm -f binary/boot/filesystem.dir/boot/vmlinu?-*
|
||||||
rm -f binary/boot/filesystem.dir/boot/initrd.img-*
|
rm -f binary/boot/filesystem.dir/boot/initrd.img-*
|
||||||
|
rm -f binary/boot/filesystem.dir/boot/abi-*
|
||||||
|
rm -f binary/boot/filesystem.dir/boot/System.map-*
|
||||||
rm -f binary/boot/filesystem.dir/initrd.img
|
rm -f binary/boot/filesystem.dir/initrd.img
|
||||||
rm -f binary/boot/filesystem.dir/vmlinu?
|
rm -f binary/boot/filesystem.dir/vmlinu?
|
||||||
rm -rf binary/boot/filesystem.dir/lib/modules
|
rm -rf binary/boot/filesystem.dir/lib/modules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user