Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 36321 Details for
Bug 43146
Support for dm-crypt in baselayout
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
sample config file
cryptomount (text/plain), 2.36 KB, created by
rob holland (RETIRED)
on 2004-07-28 06:58:45 UTC
(
hide
)
Description:
sample config file
Filename:
MIME Type:
Creator:
rob holland (RETIRED)
Created:
2004-07-28 06:58:45 UTC
Size:
2.36 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/crypto-loop,v 1.3 2004/04/21 17:09:18 vapier Exp $ > >cryptoconf="/etc/conf.d/cryptomount" > >depend() { > need checkroot > before localmount >} > >start() { > local status="0" > > ebegin "Setting up dm-crypt mappings" > > if [ -e ${cryptconf} ] > then > /bin/egrep "^(mount|swap)" ${cryptoconf} | \ > while read mountline > do > local mount= > local swap= > local options= > local makefs= > > eval ${mountline} > > if [ -n "${mount}" ] > then > local target=${mount} > [ -z "${options}" ] && options="-y" > elif [ -n "${swap}" ] > then > local target=${swap} > [ -z "${options}" ] && options="-d /dev/random" > else > ewarn "Invalid line in /etc/conf.d/cryptomount: ${mountline}" > fi > > ! /bin/cryptsetup status ${target}|egrep '\<active:' > /dev/null > local configured=$? > > if [ ${configured} -eq 0 ] > then > einfo " dm-crypt map ${target}" > if ! /bin/cryptsetup ${options} create ${target} ${source} >/dev/console </dev/console > then > ewarn "Failure configuring ${target}" > status=1 > else > if [ -n "${swap}" ] > then > [ -z "${makefs}" ] && makefs="mkswap" > fi > > if [ -n "${makefs}" ] > then > einfo " Creating filesystem on ${target}" > if ! ${makefs} /dev/mapper/${target} > /dev/null > then > ewarn "Failed to create filesystem on ${target}" > status=1 > fi > fi > fi > else > ewarn " dm-crypt mapping ${target} is already configured" > status=1 > fi > done > fi > ewend ${status} "Failed to setup a mapping or swap device." > > # We do not fail if some loop devices did not start ... > return 0 >} > ># vim:ts=4
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 43146
:
26492
|
26567
|
26568
|
26578
|
26953
|
27067
|
27268
|
36320
|
36321
|
36322
|
36323
|
36463
|
36464
|
37800
|
40036
|
40037
|
40114