kumquat-buildroot/fs
Thomas Petazzoni 7080eef9b8 fs/iso9660: support building a real iso9660 filesystem
Until now, the iso9660 filesystem handling only supported using an
initrd/initramfs to store the root filesystem, which is very different
from what we do with the other filesystems.

This commit changes the iso9660 logic to also allow using directly an
iso9660 filesystem to store the root filesystem. A new option,
BR2_TARGET_ROOTFS_ISO9660_INITRD, is created to tell the iso9660 that
we want to use an initrd and not directly the root filesystem in
iso9660 format. This option defaults to 'y' to preserve the existing
behavior.

After this commit, we therefore have three possibilities:

 * BR2_TARGET_ROOTFS_ISO9660=y, with BR2_TARGET_ROOTFS_INITRAMFS and
   BR2_TARGET_ROOTFS_ISO9660_INITRD disabled. In this case, the
   iso9660 filesystem is directly the contents of the root filesystem
   (since is possible thanks to the Rockridge extensions that were
   already enabled using the -R option of genisoimage). Obviously, it
   means that the root filesystem is read-only.

 * BR2_TARGET_ROOTFS_ISO9660=y and BR2_TARGET_ROOTFS_INITRAMFS=y (the
   value of BR2_TARGET_ROOTFS_ISO9660_INITRD doesn't matter). In this
   case, the root filesystem is already linked into the kernel image
   itself, as an initramfs. So the iso9660 filesystem doesn't contain
   the root filesystem as is, but just the bootloader and the kernel
   image.

 * BR2_TARGET_ROOTFS_ISO9660=y, BR2_TARGET_ROOTFS_ISO9660_INITRD=y and
   BR2_TARGET_ROOTFS_INITRAMFS disabled. In this case, a separate
   initrd is used. The iso9660 filesystem only contains the
   bootloader, the kernel and the initrd.

In order to support the first case out of the box, root=/dev/sr0 is
added on the kernel command line in the example Grub configuration
file, so that the kernel knows where the root filesystem is
located. This argument is ignored when initrd/initramfs are used.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2015-06-14 23:21:10 +02:00
..
cloop Normalize separator size to 80 2013-06-07 10:54:54 +02:00
cpio package: indentation cleanup 2014-10-26 05:47:05 +01:00
cramfs package: indentation cleanup 2014-10-23 22:13:29 +02:00
ext2 fs: declare phony targets as such 2015-04-14 10:12:32 +02:00
initramfs fs: declare phony targets as such 2015-04-14 10:12:32 +02:00
iso9660 fs/iso9660: support building a real iso9660 filesystem 2015-06-14 23:21:10 +02:00
jffs2 fs/jffs2: Fix mkfs.jffs2 --pagesize parameter usage 2015-05-22 11:36:00 +02:00
romfs .mk files: bulk aligment and whitespace cleanup of assignments 2014-10-07 15:00:28 +02:00
squashfs fs/squashfs: add lz4 compression support 2014-05-18 23:48:28 +02:00
tar fs/tar: only store numeric uid/gid 2015-02-19 22:02:59 +01:00
ubifs fs/ubi: add option to use custom ubinize config file 2014-02-08 22:57:31 +01:00
yaffs2 yaffs2: new filesystem type 2014-04-20 18:07:11 +02:00
common.mk fs: only add non rootfs- targets to PACKAGES 2015-04-26 12:16:19 +02:00
Config.in yaffs2: new filesystem type 2014-04-20 18:07:11 +02:00