Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219822 - openrc ebuild breaks /etc/ svn backup
Summary: openrc ebuild breaks /etc/ svn backup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-30 10:10 UTC by Philipp Riegger
Modified: 2008-05-05 03:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Riegger 2008-04-30 10:10:48 UTC
This piece of code renames files in my /etc/init.d/.svn/... which breaks my /etc/ backup method. The ebuild should either look on the places, where this is really needed, or ignore dirs like .svn.

    # force net init.d scripts into symlinks
    for f in $(find "${ROOT}"/etc/init.d/ -name 'net.*') ; do
        [[ ${f} == *.openrc.bak ]] && continue
        if [[ ! -L ${f} ]] ; then
            elog "Moved net service '${f##*/}' to '${f##*/}.openrc.bak' to force a symlink."
            elog "You should delete '${f##*/}.openrc.bak' if you don't need it."
            mv "${f}" "${f}.openrc.bak"
            ln -snf net.lo "${f}"
        fi
    done