Live CD Kernel: Difference between revisions
From LFScript
Created page with "Compiles the Linux kernel with UnionFS and SquashFS support. <scriptname>kernel-live</scriptname> == Sources == * <sourcecode>https://www.kernel.org/pub/linux/kernel/v3.x/li..." |
No edit summary |
||
Line 1: | Line 1: | ||
Compiles the Linux kernel with UnionFS and | Compiles the Linux kernel with UnionFS and OverlayFS support. | ||
<scriptname>kernel-live</scriptname> | <scriptname>kernel-live</scriptname> | ||
== Sources == | == Sources == | ||
* <sourcecode>https://www.kernel.org/pub/linux/kernel/ | * <sourcecode>https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.9.9.tar.xz</sourcecode> | ||
<md5> | <md5>de43a1a9e3a1ad97467c9a413bcdf896 linux-4.9.9.tar.xz</md5> | ||
== Installation == | == Installation == | ||
<build># | <build># Ensure OverlayFS is selected in the kernel configuration | ||
if [ "$(cat .config | grep '# CONFIG_OVERLAY_FS is not set')" ]; then | |||
sed -i "s@# CONFIG_OVERLAY_FS is not set@@g" .config | |||
echo "CONFIG_OVERLAY_FS=y" >> .config | |||
fi</build> | |||
echo " | |||
<build># Ensure SquashFS is selected in the kernel configuration | <build># Ensure SquashFS is selected in the kernel configuration | ||
Line 33: | Line 27: | ||
echo "# CONFIG_SQUASHFS_XATTR is not set" >> .config | echo "# CONFIG_SQUASHFS_XATTR is not set" >> .config | ||
echo "CONFIG_SQUASHFS_ZLIB=y" >> .config | echo "CONFIG_SQUASHFS_ZLIB=y" >> .config | ||
echo "CONFIG_SQUASHFS_LZ4=y" >> .config | |||
echo "CONFIG_SQUASHFS_LZO=y" >> .config | echo "CONFIG_SQUASHFS_LZO=y" >> .config | ||
echo "CONFIG_SQUASHFS_XZ=y" >> .config | echo "CONFIG_SQUASHFS_XZ=y" >> .config | ||
Line 44: | Line 39: | ||
<build user="root"># Install | <build user="root"># Install | ||
cp -v arch/x86/boot/bzImage /boot/vmlinuz- | cp -v arch/x86/boot/bzImage /boot/vmlinuz-4.9.9-live | ||
cp -v .config /boot/config- | cp -v .config /boot/config-4.9.9-live</build> |
Revision as of 19:17, 26 February 2017
Compiles the Linux kernel with UnionFS and OverlayFS support.
LFScript can find this software under the name kernel-live
.
Sources
MD5 Checksums:
de43a1a9e3a1ad97467c9a413bcdf896 linux-4.9.9.tar.xz
Installation
# Ensure OverlayFS is selected in the kernel configuration if [ "$(cat .config | grep '# CONFIG_OVERLAY_FS is not set')" ]; then sed -i "s@# CONFIG_OVERLAY_FS is not set@@g" .config echo "CONFIG_OVERLAY_FS=y" >> .config fi
# Ensure SquashFS is selected in the kernel configuration if [ "$(cat .config | grep '# CONFIG_SQUASHFS is not set')" ]; then sed -i "s@# CONFIG_SQUASHFS is not set@@g" .config echo "CONFIG_SQUASHFS=y" >> .config echo "CONFIG_SQUASHFS_FILE_CACHE=y" >> .config echo "# CONFIG_SQUASHFS_FILE_DIRECT is not set" >> .config echo "CONFIG_SQUASHFS_DECOMP_SINGLE=y" >> .config echo "# CONFIG_SQUASHFS_DECOMP_MULTI is not set" >> .config echo "# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set" >> .config echo "# CONFIG_SQUASHFS_XATTR is not set" >> .config echo "CONFIG_SQUASHFS_ZLIB=y" >> .config echo "CONFIG_SQUASHFS_LZ4=y" >> .config echo "CONFIG_SQUASHFS_LZO=y" >> .config echo "CONFIG_SQUASHFS_XZ=y" >> .config echo "# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set" >> .config echo "# CONFIG_SQUASHFS_EMBEDDED is not set" >> .config echo "CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3" >> .config fi
# Compile make
As the root user:
# Install cp -v arch/x86/boot/bzImage /boot/vmlinuz-4.9.9-live cp -v .config /boot/config-4.9.9-live