Date: Tue, 16 Jun 2015 20:17:22 GMT From: mihai@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r287179 - in soc2015/mihai: . ramdisk Message-ID: <201506162017.t5GKHM51022577@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mihai Date: Tue Jun 16 20:17:22 2015 New Revision: 287179 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287179 Log: soc2015: mihai: add makefs scripts for creating an mtree ramdisk Added: soc2015/mihai/ramdisk/ soc2015/mihai/ramdisk/build_ramdisk.sh soc2015/mihai/ramdisk/ramdisk.mtree Deleted: soc2015/mihai/ramdisk.mtree Added: soc2015/mihai/ramdisk/build_ramdisk.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/mihai/ramdisk/build_ramdisk.sh Tue Jun 16 20:17:22 2015 (r287179) @@ -0,0 +1,7 @@ + +export ODIR=/root/rootfs +makefs -t ffs -B little\ + -o optimization=space\ + -o version=1\ + ramdisk.img ramdisk.mtree + Added: soc2015/mihai/ramdisk/ramdisk.mtree ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/mihai/ramdisk/ramdisk.mtree Tue Jun 16 20:17:22 2015 (r287179) @@ -0,0 +1,16 @@ +#mtree v2.0 + +# Setting the default type to "dir" allows pathnames to be implicitly created +# for components leading up to the file. +/set type=dir mode=0755 uid=0 gid=0 flags=none + +./dev type=dir mode=0555 flags=uarch +./sbin/init type=file mode=0555 contents="${ODIR}/sbin/init" +./bin/sh type=file mode=0555 contents="${ODIR}/rescue/rescue" + +# hard-links to the statically-linked rescue binary (aka /bin/sh) +./bin/sysctl type=link mode=0555 link=/bin/sh +./bin/reboot type=link mode=0555 link=/bin/sh +./bin/ls type=link mode=0555 link=/bin/sh + +# ... etc. Put in as many as you want from /rescue/*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506162017.t5GKHM51022577>