FreeBSD Bugzilla – Attachment 162691 Details for
Bug 204215
[patch] [feature-request] make rc.initdiskless more embedded-friendly and support auxiliary NVRAM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
support for auxiliary NVRAM
rc.initdiskless.diff (text/plain), 1.66 KB, created by
Eugene Grosbein
on 2015-11-02 09:21:00 UTC
(
hide
)
Description:
support for auxiliary NVRAM
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2015-11-02 09:21:00 UTC
Size:
1.66 KB
patch
obsolete
>--- etc/rc.initdiskless.orig 2015-11-02 15:46:27.012124000 +0700 >+++ etc/rc.initdiskless 2015-11-02 16:01:41.042854000 +0700 >@@ -111,6 +111,15 @@ > # created for /SUBDIR if necessary). The presence of this file > # prevents the copy from /conf/T/SUBDIR/ > # >+# /conf/T/M/extract >+# This is alternative to SUBDIR.cpio.gz and remount. >+# Similar to remount case, a memory filesystem is created >+# for /M and initialized from a template but no mounting >+# performed. Instead, this file is run passing /M as singe >+# argument. It is expected to extract template override to /M >+# using auxiliary storage found in some embedded systems >+# having NVRAM too small to hold mountable file system. >+# > # /conf/T/SUBDIR.remove > # The list of paths contained in the file are rm -rf'd > # relative to /SUBDIR. >@@ -342,8 +351,8 @@ > > # - Create all required MFS filesystems and populate them from > # our templates. Support both a direct template and a dir.cpio.gz >-# archive. Support dir.remove files containing a list of relative >-# paths to remove. >+# archive. Support for auxiliary NVRAM. Support dir.remove files containing >+# a list of relative paths to remove. > # > # The dir.cpio.gz form is there to make the copy process more efficient, > # so if the cpio archive is present, it prevents the files from dir/ >@@ -366,6 +375,15 @@ > (cd / ; /rescue/tar -xpf $j) > fi > done >+ for j in /conf/$i/*/extract ; do >+ if [ -x $j ]; then >+ subdir=${j%*/extract} >+ subdir=${subdir##*/} >+ create_md $subdir >+ echo "Loading /$subdir using auxiliary command $j" >+ $j /$subdir >+ fi >+ done > for j in /conf/$i/*.remove ; do > subdir=${j%*.remove} > subdir=${subdir##*/}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204215
: 162691