diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2016-10-04 12:10:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-10-24 08:14:41 +0200 |
commit | 9bcbb51263b5f21981651cd146dec439def797e3 (patch) | |
tree | 7518508ceb13db3e29930d46aeb1c94183630a9f /include | |
parent | 6feed0b491d7f433abca608d4a1d872045187774 (diff) | |
download | barebox-9bcbb51263b5f21981651cd146dec439def797e3.tar.gz barebox-9bcbb51263b5f21981651cd146dec439def797e3.tar.xz |
Add filetype and detection for squashfs images
This adds `filetype_squashfs` to the list of known filetypes and adds a
detection for squashfs files to file_detect_type(). This currently
matches on the `hsqs` start sequence of an image file.
Additionally, the newly introduced filetype is registered as the type of
the squashfs_driver which allows, for example, to mount squashfs without
the need to specify a type parameter.
This changes enable booting a squashfs with the simple `boot` command
pointing to the location (device) that holds the squashfs.
Note that booting with blspec is limited as the current squashfs driver
is not capable of handling symbolic links.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/filetype.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h index cde73c1170..65bd6efb7b 100644 --- a/include/filetype.h +++ b/include/filetype.h @@ -16,6 +16,7 @@ enum filetype { filetype_uimage, filetype_ubi, filetype_jffs2, + filetype_squashfs, filetype_gzip, filetype_bzip2, filetype_oftree, |