Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 146146 Details for
Bug 223722
RFE: add functionality to persist temporary state back to original location
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Persist temporary state back to disk on shutdown/reboot
persist-stateless (text/plain), 1.89 KB, created by
Ville Skyttä
on 2007-01-21 21:38:54 UTC
(
hide
)
Description:
Persist temporary state back to disk on shutdown/reboot
Filename:
MIME Type:
Creator:
Ville Skyttä
Created:
2007-01-21 21:38:54 UTC
Size:
1.89 KB
patch
obsolete
>#!/bin/sh ># ># description: Persists temporary state back to its original location ># config: /etc/rwtab > ># Link this to /etc/rc.d/rc{0,6}.d/S00persist-stateless > >. /etc/init.d/functions > >case "$1" in > start) > ;; > *) > echo $"Usage: $0 {start}" > exit 2 >esac > ># Keep this stuff in sync with /etc/rc.sysinit > >cmdline=$(cat /proc/cmdline) > >READONLY= >if [ -f /etc/sysconfig/readonly-root ] ; then > . /etc/sysconfig/readonly-root >fi >if strstr "$cmdline" readonlyroot ; then > READONLY=yes > [ -z "$RW_MOUNT" ] && RW_MOUNT=/var/lib/stateless/writable >fi >if strstr "$cmdline" noreadonlyroot ; then > READONLY=no >fi > >if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ] ; then > > persist_empty() { > if [ -e "$RW_MOUNT$1" ] ; then > umount -n "$1" && \ > cd "$RW_MOUNT" && echo ".$1" | cpio -p -vd / &>/dev/null > fi > } > > persist_dirs() { > if [ -e "$RW_MOUNT$1" ] ; then > umount -n "$1" || return > cd "$RW_MOUNT" && \ > find "./$1" -type d -print0 | cpio -p -0vd / &>/dev/null > fi > } > > persist_files() { > if [ -e "$RW_MOUNT$1" ] ; then > umount -n "$1" && cd "$RW_MOUNT" && cp -a --parents ".$1" / > fi > } > > for file in /etc/rwtab /etc/rwtab.d/* ; do > is_ignored_file "$file" && continue > [ -f $file ] && cat $file | while read type path ; do > case "$type" in > empty) > persist_empty $path > ;; > files) > persist_files $path > ;; > dirs) > if [ "$path" = "/var/log" ] ; then > persist_files $path > else > persist_dirs $path > fi > ;; > *) > ;; > esac > done > done >fi
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 Raw
Actions:
View
Attachments on
bug 223722
: 146146 |
347205
|
347206
|
347207
|
347208