mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-10 01:21:31 +00:00
Import patches-unapplied version 2.397 to ubuntu/xenial-proposed
Imported using git-ubuntu import. Changelog parent: 15d22caf2c437bdfed9b1e71c6e6b4bffd5a26b8 New changelog entries: * live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot: create a generic initrd inside the snappy os-snap so we do not need the hackish ubuntu-core-generic-initrd package anymore.
This commit is contained in:
parent
15d22caf2c
commit
fa7136ad4d
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
|||||||
|
livecd-rootfs (2.397) xenial; urgency=medium
|
||||||
|
|
||||||
|
* live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot:
|
||||||
|
create a generic initrd inside the snappy os-snap so we do not need the
|
||||||
|
hackish ubuntu-core-generic-initrd package anymore.
|
||||||
|
|
||||||
|
-- Oliver Grawert <ogra@ubuntu.com> Thu, 07 Apr 2016 17:21:13 +0200
|
||||||
|
|
||||||
livecd-rootfs (2.396) xenial; urgency=medium
|
livecd-rootfs (2.396) xenial; urgency=medium
|
||||||
|
|
||||||
[ Adam Conrad ]
|
[ Adam Conrad ]
|
||||||
|
@ -401,7 +401,7 @@ case $PROJECT in
|
|||||||
add_package install u-boot-tools
|
add_package install u-boot-tools
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none"
|
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none --initramfs-compression=none"
|
||||||
|
|
||||||
# contains the framework definition
|
# contains the framework definition
|
||||||
add_package install ubuntu-core-libs
|
add_package install ubuntu-core-libs
|
||||||
|
22
live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot
Executable file
22
live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
IVER="$(dpkg -s initramfs-tools-ubuntu-core | \
|
||||||
|
sed -n '/^Version:/{s/^[^: ]*: \([^: ]*\).*/\1/;p;}')"
|
||||||
|
|
||||||
|
# force lzma
|
||||||
|
mkdir -p /etc/initramfs-tools/conf.d
|
||||||
|
echo "COMPRESS=lzma" >/etc/initramfs-tools/conf.d/snappy-generic-initrd.conf
|
||||||
|
|
||||||
|
update-initramfs.REAL -c -kcore-$IVER -v
|
||||||
|
|
||||||
|
cd /boot
|
||||||
|
ln -s initrd.img-core-$IVER initrd.img-core
|
||||||
|
cd -
|
||||||
|
|
||||||
|
sha1sum /boot/initrd.img-core >/var/lib/initramfs-tools/core
|
||||||
|
|
||||||
|
# for snapcraft backwards compatibility
|
||||||
|
mkdir -p /usr/lib/ubuntu-core-generic-initrd
|
||||||
|
cp -a /boot/initrd.img-core* /usr/lib/ubuntu-core-generic-initrd/
|
Loading…
x
Reference in New Issue
Block a user