First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 177100
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Benjamin Smee (strerror) (RETIRED) <strerror@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mike Auty <ikelos@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
dmcrypt /etc/init.d/dmcrypt rcscript text/plain Mike Auty 2007-05-04 22:43 0000 471 bytes Details
dm-crypt-start.sh /lib/rcscripts/addons/dm-crypt-start.sh text/plain Mike Auty 2007-05-04 22:43 0000 7.25 KB Details
dm-crypt-stop.sh /lib/rcscripts/addons/dm-crypt-stop.sh text/plain Mike Auty 2007-05-04 22:44 0000 1021 bytes Details
dmcrypt /etc/init.d/dmcrypt rcscript - version 2 text/plain Mike Auty 2007-05-05 11:00 0000 751 bytes Details
dmcrypt /etc/init.d/dmcrypt rcscript - version 3 text/plain Mike Auty 2007-05-16 19:36 0000 555 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 177100 depends on: 134489 Show dependency tree
Show dependency graph
Bug 177100 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-04 22:42 0000
As requested in
http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg20846.html, I'm
attaching patched scripts for mounting dmcrypt swap and other encrypted
volumes.

Sadly it still can't be started after urandom, because it must be started
before checkfs (and apparently checkfs won't start properly if urandom is
started before it).  Sorry...  5:(  It may eventually be possible with multiple
start-up services, such as one for swap, one for pre-lvm and one for post-lvm. 
That should allow urandom to be started after checkfs, but before the
dmcrypt-swap starts, since swap doesn't need to be checked.

Anyway, the new rcscript is called dmcrypt (to try and stay in keeping with the
addon name).  To stick with the "/etc/init.d/name means /etc/conf.d/name" idea,
/etc/conf.d/cryptfs has now been changed to /etc/conf.d/dmcrypt.

Finally, I've only really tested this with swap, but it appears to work.  Hope
it helps/is a start...  5:)

Files to follow

------- Comment #1 From Mike Auty 2007-05-04 22:43:26 0000 -------
Created an attachment (id=118184) [edit]
/etc/init.d/dmcrypt rcscript

------- Comment #2 From Mike Auty 2007-05-04 22:43:51 0000 -------
Created an attachment (id=118185) [edit]
/lib/rcscripts/addons/dm-crypt-start.sh

------- Comment #3 From Mike Auty 2007-05-04 22:44:13 0000 -------
Created an attachment (id=118186) [edit]
/lib/rcscripts/addons/dm-crypt-stop.sh

------- Comment #4 From Jose daLuz 2007-05-05 01:12:09 0000 -------
It also fails to mount lvm volumes. My /dev/vg1 symlinks are never created. I
can manually mount the files in /dev/mapper after boot. 

If this is unrelated, please let me know and I will file a separate bug.

Portage 2.1.2.5 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0,
2.6.21-gentoo x86_64)
=================================================================
System uname: 2.6.21-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.13.0_alpha12
Timestamp of tree: Fri, 04 May 2007 23:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild
/etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms
splitdebug strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/wrobel
/usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/xeffects
/usr/portage/local/layman/sunrise /usr/local/overlays/myoverlay
/usr/local/overlays/bmg-main"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac alsa amd64 amr bash-completion berkdb bitmap-fonts bzip2 cairo
cdda cdr cli cracklib crypt css cups dbus debug dri dts dvd dvdr eds emboss
encode esd fam ffmpeg firefox flac fortran gdbm gif glitz gnome gpm gstreamer
gtk gtk2 hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility ldap libg++
libnotify mad midi mikmod mono mp3 mpeg ncurses nls nptl nptlonly ogg opengl
pam pcre perl pic png ppds pppd python qt3 qt4 quicktime readline reflection
ruby samba sdl session spell spl sqlite ssl tcpd theora tiff truetype
truetype-fonts type1-fonts unicode usb userlocales vcd vorbis x264 xml xorg xv
xvid zlib" ALSA_CARDS="emu10k1 intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy
dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear
meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS

------- Comment #5 From Mike Auty 2007-05-05 09:24:16 0000 -------
Hiya Jose, sadly that is unrelated.  Baselayout-2 now requires each of the
volumes type (lvm, raid, dm-crypt, etc) to have their own init script and this
one only covers dm-crypt.  You can read more about the decision at
http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg20842.html.

------- Comment #6 From Mike Auty 2007-05-05 10:53:14 0000 -------
Jose, it appears you're after bug 175983.  5:)

------- Comment #7 From Mike Auty 2007-05-05 11:00:52 0000 -------
Created an attachment (id=118221) [edit]
/etc/init.d/dmcrypt rcscript - version 2

Slightly corrected rc-script that removes dependencies for baselayout-1 (as
yoinked from bug 175983) just to be on the safe side, and also now shuts down
the dm-crypt stuff as well...

------- Comment #8 From Jose daLuz 2007-05-05 12:45:51 0000 -------
(In reply to comment #6)
> Jose, it appears you're after bug 175983.  5:)
> 
Thanks very much, I'll follow that bug instead.

------- Comment #9 From Mike Auty 2007-05-16 19:36:59 0000 -------
Created an attachment (id=119463) [edit]
/etc/init.d/dmcrypt rcscript - version 3

Slightly fixed up version that now includes a stop function (because otherwise
dm-crypt-stop.sh is a bit pointless, I'm not sure why I didn't include one
initially) and also fixes an issue in the warning for baselayout-1 users that
was using a baselayout-2 variable, pointed out to me by Hoffie.  5:)

------- Comment #10 From Thomas Meyer 2007-08-06 18:58:31 0000 -------
Any news on this bug? Now that baselayout-2 is on the horizon...

And please change summary to "sys-apps/baselayout-2.0.0_rc2 no longer loads
dm-crypt volumes".

------- Comment #11 From Benjamin Smee (strerror) (RETIRED) 2007-08-14 16:07:03 0000 -------
in cvs. make sure you emerge cryptsetup and NOT cryptsetup-luks. You'll also
have to do the "rc-update add dmcrypt boot" etc.

------- Comment #12 From Thomas Meyer 2007-08-14 21:00:20 0000 -------
ok. Thanks. BUT the addons scripts should search
for the cryptsetup binary in /sbin and not in
/bin/cryptsetup...

then everything is working fine again.

------- Comment #13 From Benjamin Smee (strerror) (RETIRED) 2007-08-17 22:01:01 0000 -------
yeah i fixed that in cvs the day after, just remerge to get the correct /sbin
reference.

First Last Prev Next    No search results available      Search page      Enter new bug