[PATCH] Add support for ubifs chroot filesystem
Hello,
Please find attached a patch which adds support for ubifs choort filesystems.
Cheers,
--
Cody A.W. Somerville
Software Systems Release Engineer
Foundations Team
Custom Engineering Solutions Group
Canonical OEM Services
Phone: +1-781-850-2087
Cell: +1-506-471-8402
Email: cody.somerville@canonical.com
=== modified file 'helpers/lh_binary_rootfs'
--- helpers/lh_binary_rootfs 2009-04-18 05:39:34 +0000
+++ helpers/lh_binary_rootfs 2009-10-04 05:06:37 +0000
@@ -301,6 +301,48 @@
Remove_package
;;
+ ubifs)
+ # Checking depends
+ if [ "${LH_DISTRIBUTION}" = "etch" ]
+ then
+ Check_package chroot/usr/sbin/mkfs.ubifs mtd-tools
+ else
+ Check_package chroot/usr/sbin/mkfs.ubifs mtd-utils
+ fi
+
+ # Restoring cache
+ Restore_cache cache/packages_binary
+
+ # Installing depends
+ Install_package
+
+ # Remove old ubifs image
+ rm -f binary/firmware/ubi.img
+
+ # Create binary/firmware directory
+ mkdir -p binary/firmware
+
+ case "${LH_CHROOT_BUILD}" in
+ enabled)
+ Chroot chroot "mkfs.ubifs -e 1032192 -m 8192 -c 3976 -r chroot -o filesystem.ubifs"
+
+ # Move image
+ mv chroot/filesystem.ubifs binary/${INITFS}/
+ rm -rf chroot/chroot
+ ;;
+
+ disabled)
+ mkfs.ubifs -e 1032192 -m 8192 -c 3976 -r chroot -o binary/${INITFS}/filesystem.ubifs
+ ;;
+ esac
+
+ # Saving cache
+ Save_cache cache/packages_binary
+
+ # Removing depends
+ Remove_package
+ ;;
+
none)
if [ -d binary ]
then
Reply to: