THe following changes were made:
* Moved to new version scheme * Added brief * Split off linux-headers-3.16.37 and linux-firmware as separate packages
This commit is contained in:
@@ -50,7 +50,7 @@ CONFIG_BUILDTIME_EXTABLE_SORT=y
|
||||
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||
CONFIG_CROSS_COMPILE=""
|
||||
# CONFIG_COMPILE_TEST is not set
|
||||
CONFIG_LOCALVERSION="-sr0"
|
||||
CONFIG_LOCALVERSION="-3"
|
||||
# CONFIG_LOCALVERSION_AUTO is not set
|
||||
CONFIG_HAVE_KERNEL_GZIP=y
|
||||
CONFIG_HAVE_KERNEL_BZIP2=y
|
||||
34
SNAP/usher
34
SNAP/usher
@@ -7,7 +7,39 @@ case $1 in
|
||||
exit 0
|
||||
;;
|
||||
postinst)
|
||||
mkinitramfs
|
||||
KERNEL_VER=`ls -C1rt ${TARGET}/boot/vmlinuz*|sed 's/.*vmlinuz-//'`
|
||||
|
||||
if [[ ${TARGET} ]]; then
|
||||
echo "Running within ${TARGET} for kernel $KERNEL_VER"
|
||||
|
||||
if ! mountpoint -q ${TARGET}/dev; then
|
||||
mount -t devtmpfs none ${TARGET}/dev
|
||||
fi
|
||||
if ! mountpoint -q ${TARGET}/proc; then
|
||||
mount -t proc none ${TARGET}/proc
|
||||
fi
|
||||
if ! mountpoint -q ${TARGET}/sys; then
|
||||
mount -t sysfs none ${TARGET}/sys
|
||||
fi
|
||||
|
||||
chroot ${TARGET} /bin/bash -c "/sbin/mkinitramfs $KERNEL_VER"
|
||||
chroot ${TARGET} /bin/bash -c \
|
||||
"/sbin/grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
|
||||
if mountpoint -q ${TARGET}/dev; then
|
||||
umount ${TARGET}/dev
|
||||
fi
|
||||
if mountpoint -q ${TARGET}/proc; then
|
||||
umount ${TARGET}/proc
|
||||
fi
|
||||
if mountpoint -q ${TARGET}/sys; then
|
||||
umount ${TARGET}/sys
|
||||
fi
|
||||
else
|
||||
echo "Running for kernel $KERNEL_VER"
|
||||
mkinitramfs $KERNEL_VER
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
;;
|
||||
prerm)
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user