From 9bcbb51263b5f21981651cd146dec439def797e3 Mon Sep 17 00:00:00 2001 From: Enrico Jorns Date: Tue, 4 Oct 2016 12:10:47 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- include/filetype.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/filetype.h') 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, -- cgit v1.2.3