Installing on an Encrypted LVM partition

Installer Issues via Installer -- Not for global upgrades or upgrading individual packages -- ONLY ISSUES WITH INSTALLATION OF THE OS -- Can't get Sabayon installed, than post here, otherwise use correct forums

Moderator: Moderators

eMxyzptlk
Young Hen
Posts: 23
Joined: Sat Jun 07, 2008 1:15
Location: Rennes
Contact:

Installing on an Encrypted LVM partition

Post by eMxyzptlk » Sat Jun 07, 2008 1:39

Hello,

First Guys I would like to congratulate on the magnificent work you have done, this is by far the best Gentoo fork I've tried, I like the idea of the distro being FreeBSD-like, where the user can either choose between compiling or installing from binary packages... I like the artwork as well, Good work Guys :D

Anyway my story is that I'm very sensitive about my data, since everything is on my laptop I'd like to keep it as safe as possible, so since a year I always encrypted a big partition and on it create an LVM on the encrypted partition where I store everything on it... from /etc to swap...

I used Gentoo for like a 2 years but lately it was disappointing me, my laptop never sleep, mplayer + compiz doesn't work and Intel drivers keeps crashing taking my whole system with it. So I've tried the new ubuntu and everything works with it except I'm not very impressed with my laptop as I used to be with Gentoo and I like to switch back, but the problem is that the installer doesn't detect that the Encrypted partition is actually the Physical Volume for my LVM array and therefore I'm unable to install it... here's a little overview of my current FS layout:

Code: Select all

/dev/sda
--> /dev/sda1
--> /dev/sda2
-----> /dev/mapper/lvm
-------> Volume Group: phoenix
---------------> sabayon-root
---------------> sabayon-usr
---------------> sabayon-var
---------------> sabayon-opt
---------------> sabayon-overlays
---------------> home
---------------> storage
---------------> tmp
---------------> var-tmp
---------------> swap
---------------> suspend-swap
---------------> ubuntu-root
---------------> ubuntu-usr
---------------> ubuntu-var
---------------> ubuntu-opt
As you can see, /dev/sda1 is an 100M ext2 partition for /boot, in it I have all my OSs organised by folders, /dev/sda2 is encrypted, over it is the LVM Physical Volume. The installer only sees /dev/sda1, /dev/sda2 and all the Logical Volume but it doesn't see /dev/mapper/lvm and therefore it complains about it and I can't get passed the partitioner...

Is there any way I could perhaps get the installer to forget about the physical volume and I deal with it using genkernel myself ?? I'm very familiar with genkernel I even patched it to work a bit differently with encryption and splash... Or does Sabayon have perhaps a stage3-like so I can have the core system and install the rest myself ??

Thank you :)
Image

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Installing on an Encrypted LVM partition

Post by xlnagla » Sat Jun 07, 2008 2:20

We used to have a stage-3, but I think it's long gone by now - you can pull a minimal gentoo install to set up a main environment and use their stage3, but after you've updated portage and compiled world, instead of continuing with the general path (compiling kernel, etc.) modify your make.conf to match ours (I'll post it if you need one) grab layman, layman -a sabayon, and emerge equo, then equo world to 3.5L3 and you'll have effectively installed from the DVD. You'll even get our drivers and kernel. And you can set up booting however you'd like. Also, the lvm is a known problem and should be fixed by 3.5 final, if you'd rather wait. I was a tad brief in this because you strike me as someone who knows what they're doing - just ask if I glossed over something new.

~xlnagla

eMxyzptlk
Young Hen
Posts: 23
Joined: Sat Jun 07, 2008 1:15
Location: Rennes
Contact:

Re: Installing on an Encrypted LVM partition

Post by eMxyzptlk » Sat Jun 07, 2008 2:36

Oh Yea that make sense... I'd appreciate a make.conf though :) ...

Thanks
Image

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Installing on an Encrypted LVM partition

Post by xlnagla » Sat Jun 07, 2008 2:48

here you go. Don't modify this make.conf until after you've equo worlded just to avoid dependency issues. After you're up to loop3 feel free to customize all you want if you want to go with portage.

Code: Select all

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-Os -march=i686"
CHOST="i586-pc-linux-gnu"
USE="-oss voice weather libao -esd xine mp3 gnutls cups ppds foomatic-db \
     alsa \ hal gimpprint freetype X unicode kde rdesktop pda \
     zeroconf wifi lm_sensors ieee1394 logitech-mouse xinerama \
     bluetooth irda sms quotas dvb xprint dvd theora ogg a52 \
     kdeenablefinal win32codecs v4l xvid network dvdread fame svg ffmpeg \
     nsplugin wmf 7Zip visualization accessibility css audiofile \
     artswrappersuid musicbrainz gphoto2 povray scanner musepack dvdr \
     jack new-login commercial kerberos pam_console pwdb dbus \
     firefox acpi pcmcia openexr rar dri aac fat hfs jfs xfs ntfs \
     reiserfs cjk cdda dts imap flash jabber msn yahoo icq irc lj aim \
     bidi rss dxr3 cairo sysfs xpm nptl nptlonly gs dv lzo mjpeg mmx \
     speex slp fftw real joystick asf xvmc v4l2 cpudetection \
     extramodules mail -apm config_wizard dga lcd chm spreadsheet gcj \
     switch_all_desktops ipod flac exscalibar avahi stream live \
     kdehiddenvisibility tiff usb kipi aiglx x264 3dfx pulseaudio \
     lame mp3rtp udev cdr dvi libnotify bzip2 aalib mng \
     startup-notification openal jingle gsm dbox2 cddb -beagle -gnome -evo \
     -mono -eds opengl sdl png gif gtk qt3 qt4 qt3support kickoff xcb \
     tracker mozdevelop inotify xulrunner jpeg spell fam vorbis \
     gstreamer encode mpeg truetype mad xml mikmod device-mapper"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"
LINGUAS="en"
MAKEOPTS="-j2 -s "
PORTAGE_NICENESS="8"
FEATURES="parallel-fetch collision-protect"
CONFIG_PROTECT="/usr/kde/3.5/share/config/kdm/ /etc"
#VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo epson vermilion xgi nvidia"
#INPUT_DEVICES="evdev keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio joystick magellan microtouch mutouch palmax penmount spaceorb summa synaptics tek4957 wacom ur98 vmmouse void wacom"
PORT_LOGDIR=/var/lib/entropy/logs
PORTAGE_ELOG_CLASSES="warn info log"
PORTAGE_ELOG_SYSTEM="save"
LIRC_DEVICES="audio audio_alsa"
source /usr/portage/local/layman/make.conf
CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11"
APACHE2_MPMS="prefork"
ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y"
VIDEO_CARDS=""

eMxyzptlk
Young Hen
Posts: 23
Joined: Sat Jun 07, 2008 1:15
Location: Rennes
Contact:

Re: Installing on an Encrypted LVM partition

Post by eMxyzptlk » Sat Jun 07, 2008 2:49

Ok Thank you :)

When am done I'll tell you how it goes and post some details just in case someone else was looking for the same thing...
Image

xlnagla
Sagely Hen
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Installing on an Encrypted LVM partition

Post by xlnagla » Sat Jun 07, 2008 3:03

thanks - most commonly people will only do this if they're in an encrypted lvm (you) or their computer hates isolinux.... since neither of those scenarios are terribly common we've not had a guide for it made before and, it would be good to get a comprehensive summary of the process.

~xlnagla

eMxyzptlk
Young Hen
Posts: 23
Joined: Sat Jun 07, 2008 1:15
Location: Rennes
Contact:

Re: Installing on an Encrypted LVM partition

Post by eMxyzptlk » Sat Jun 07, 2008 5:24

<offtopic>
LOL

Code: Select all

phoenix equo # equo database --initialize
>> You didn't run equo --help, did you?
phoenix equo # equo database --initialize
>> Did you even read equo --help??
phoenix equo # equo database --initialize
>> I give up. Run that equo --help !!!!!!!
phoenix equo # equo database --initialize
>> OH MY GOD. RUN equo --heeeeeeeeeeeeeelp
phoenix equo # equo database --initialize
>> Illiteracy is a huge problem in this world
phoenix equo # equo database --initialize
>> Ok i give up, you are hopeless
phoenix equo # equo database --initialize
>> Go to hell.
I like it LOL :D
</offtopic>
Image

eMxyzptlk
Young Hen
Posts: 23
Joined: Sat Jun 07, 2008 1:15
Location: Rennes
Contact:

Re: Installing on an Encrypted LVM partition

Post by eMxyzptlk » Sat Jun 07, 2008 12:25

I'm getting a Segmentation fault while installing world,

Code: Select all

phoenix tmp # equo world
>>  @@ Calculating System Updates...
>>  @@ Calculating dependencies ...
>>  @@ Packages needing to be installed/updated/downgraded: 141
>>  @@ Packages needing to be removed: 1
>>  @@ Download size: 0b
>>  @@ Used disk space: 318.2MB
>>  @@ You need at least: 644.1MB of free space
>>  :: (1/141) >>> sys-apps/entropy-0.15.21.3
>>    ## Package checksum matches.
>>  :: (2/141) >>> app-admin/equo-0.15.21.3
>>    ## Package checksum matches.
>>  :: (3/141) >>> app-admin/perl-cleaner-1.05
>>    ## Package checksum matches.
>>  :: (4/141) >>> app-admin/python-updater-0.4
>>    ## Package checksum matches.
>>  :: (5/141) >>> app-arch/bzip2-1.0.5
>>    ## Package checksum matches.
>>  :: (6/141) >>> app-arch/cpio-2.9-r1
>>    ## Package checksum matches.
>>  :: (7/141) >>> app-arch/gzip-1.3.12
>>    ## Package checksum matches.
>>  :: (8/141) >>> app-arch/lzma-utils-4.32.5
>>    ## Package checksum matches.
>>  :: (9/141) >>> app-arch/tar-1.20
>>    ## Package checksum matches.
>>  :: (10/141) >>> app-crypt/mit-krb5-1.6.3-r1
>>    ## Package checksum matches.
>>  :: (11/141) >>> app-crypt/opencdk-0.6.6
>>    ## Package checksum matches.
>>  :: (12/141) >>> app-editors/nano-2.1.1-r1
>>    ## Package checksum matches.
>>  :: (13/141) >>> app-misc/ca-certificates-20070303-r1
>>    ## Package checksum matches.
>>  :: (14/141) >>> app-misc/pax-utils-0.1.17
>>    ## Package checksum matches.
>>  :: (15/141) >>> app-portage/layman-1.1.1
>>    ## Package checksum matches.
>>  :: (16/141) >>> app-shells/bash-3.2_p33
>>    ## Package checksum matches.
>>  :: (17/141) >>> dev-db/sqlite-3.5.9
>>    ## Package checksum matches.
>>  :: (18/141) >>> dev-lang/perl-5.8.8-r4
>>    ## Package checksum matches.
>>  :: (19/141) >>> dev-lang/tcl-8.4.16
>>    ## Package checksum matches.
>>  :: (20/141) >>> dev-lang/tk-8.4.16
>>    ## Package checksum matches.
>>  :: (21/141) >>> dev-python/python-fchksum-1.7.1
>>    ## Package checksum matches.
>>  :: (22/141) >>> dev-lang/python-2.5.1-r5
>>    ## Package checksum matches.
>>  :: (23/141) >>> dev-libs/apr-1.2.12
>>    ## Package checksum matches.
>>  :: (24/141) >>> net-libs/openslp-1.2.1-r1
>>    ## Package checksum matches.
>>  :: (25/141) >>> net-nds/openldap-2.3.41
>>    ## Package checksum matches.
>>  :: (26/141) >>> dev-libs/apr-util-1.2.12
>>    ## Package checksum matches.
>>  :: (27/141) >>> dev-libs/expat-2.0.1
>>    ## Package checksum matches.
>>  :: (28/141) >>> dev-libs/gmp-4.2.2
>>    ## Package checksum matches.
>>  :: (29/141) >>> dev-libs/libgcrypt-1.4.1
>>    ## Package checksum matches.
>>  :: (30/141) >>> dev-libs/libgpg-error-1.6
>>    ## Package checksum matches.
>>  :: (31/141) >>> dev-libs/libpcre-7.4-r1
>>    ## Package checksum matches.
>>  :: (32/141) >>> dev-libs/libtasn1-1.1
>>    ## Package checksum matches.
>>  :: (33/141) >>> dev-libs/libxml2-2.6.31
>>    ## Package checksum matches.
>>  :: (34/141) >>> dev-libs/lzo-2.02-r1
>>    ## Package checksum matches.
>>  :: (35/141) >>> dev-libs/mpfr-2.3.0_p3
>>    ## Package checksum matches.
>>  :: (36/141) >>> dev-libs/openssl-0.9.8g-r1
>>    ## Package checksum matches.
>>  :: (37/141) >>> dev-libs/popt-1.13
>>    ## Package checksum matches.
>>  :: (38/141) >>> dev-perl/Locale-gettext-1.05
>>    ## Package checksum matches.
>>  :: (39/141) >>> dev-perl/URI-1.35
>>    ## Package checksum matches.
>>  :: (40/141) >>> dev-util/pkgconfig-0.23
>>    ## Package checksum matches.
>>  :: (41/141) >>> net-libs/gnutls-2.0.4
>>    ## Package checksum matches.
>>  :: (42/141) >>> net-misc/neon-0.28.2
>>    ## Package checksum matches.
>>  :: (43/141) >>> dev-util/subversion-1.5.0_rc5
>>    ## Package checksum matches.
>>  :: (44/141) >>> net-misc/iputils-20070202
>>    ## Package checksum matches.
>>  :: (45/141) >>> net-misc/openssh-5.0_p1-r1
>>    ## Package checksum matches.
>>  :: (46/141) >>> sys-apps/attr-2.4.39
>>    ## Package checksum matches.
>>  :: (47/141) >>> sys-apps/acl-2.2.45
>>    ## Package checksum matches.
>>  :: (48/141) >>> net-misc/rsync-3.0.2
>>    ## Package checksum matches.
>>  :: (49/141) >>> net-misc/wget-1.10.2
>>    ## Package checksum matches.
>>  :: (50/141) >>> perl-core/PodParser-1.35
>>    ## Package checksum matches.
>>  :: (51/141) >>> perl-core/Test-Harness-2.64
>>    ## Package checksum matches.
>>  :: (52/141) >>> sys-apps/baselayout-2.0.0
>>    ## Package checksum matches.
>>  :: (53/141) >>> sys-apps/busybox-1.10.1-r1
>>    ## Package checksum matches.
>>  :: (54/141) >>> sys-apps/coreutils-6.12
>>    ## Package checksum matches.
>>  :: (55/141) >>> sys-apps/diffutils-2.8.7-r2
>>    ## Package checksum matches.
>>  :: (56/141) >>> sys-apps/file-4.23
>>    ## Package checksum matches.
>>  :: (57/141) >>> sys-apps/findutils-4.3.11
>>    ## Package checksum matches.
>>  :: (58/141) >>> sys-apps/gawk-3.1.5-r5
>>    ## Package checksum matches.
>>  :: (59/141) >>> sys-apps/grep-2.5.1a-r1
>>    ## Package checksum matches.
>>  :: (60/141) >>> sys-apps/groff-1.19.2-r2
>>    ## Package checksum matches.
>>  :: (61/141) >>> sys-apps/help2man-1.36.4
>>    ## Package checksum matches.
>>  :: (62/141) >>> sys-apps/kbd-1.13-r1
>>    ## Package checksum matches.
>>  :: (63/141) >>> sys-apps/less-418
>>    ## Package checksum matches.
>>  :: (64/141) >>> sys-apps/man-1.6f
>>    ## Package checksum matches.
>>  :: (65/141) >>> sys-apps/man-pages-2.76
>>    ## Package checksum matches.
>>  :: (66/141) >>> sys-apps/module-init-tools-3.4
>>    ## Package checksum matches.
>>  :: (67/141) >>> sys-apps/net-tools-1.60_p20071202044231-r1
>>    ## Package checksum matches.
>>  :: (68/141) >>> sys-apps/openrc-0.2.3-r1
>>    ## Package checksum matches.
>>  :: (69/141) >>> sys-apps/portage-2.1.5.3
>>    ## Package checksum matches.
>>  :: (70/141) >>> sys-apps/sandbox-1.2.18.1-r2
>>    ## Package checksum matches.
>>  :: (71/141) >>> sys-apps/sed-4.1.5-r1
>>    ## Package checksum matches.
>>  :: (72/141) >>> sys-apps/shadow-4.0.18.2
>>    ## Package checksum matches.
>>  :: (73/141) >>> sys-apps/sysvinit-2.86-r10
>>    ## Package checksum matches.
>>  :: (74/141) >>> sys-apps/tcp-wrappers-7.6-r8
>>    ## Package checksum matches.
>>  :: (75/141) >>> sys-apps/texinfo-4.11-r1
>>    ## Package checksum matches.
>>  :: (76/141) >>> sys-apps/util-linux-2.13.1
>>    ## Package checksum matches.
>>  :: (77/141) >>> sys-apps/which-2.19
>>    ## Package checksum matches.
>>  :: (78/141) >>> sys-auth/pambase-20080318
>>    ## Package checksum matches.
>>  :: (79/141) >>> sys-devel/autoconf-2.62
>>    ## Package checksum matches.
>>  :: (80/141) >>> sys-devel/autoconf-wrapper-5
>>    ## Package checksum matches.
>>  :: (81/141) >>> sys-devel/automake-1.10.1
>>    ## Package checksum matches.
>>  :: (82/141) >>> sys-devel/automake-wrapper-3-r1
>>    ## Package checksum matches.
>>  :: (83/141) >>> sys-devel/bc-1.06.95
>>    ## Package checksum matches.
>>  :: (84/141) >>> sys-devel/binutils-2.18-r1
>>    ## Package checksum matches.
>>  :: (85/141) >>> sys-devel/binutils-config-1.9-r4
>>    ## Package checksum matches.
>>  :: (86/141) >>> sys-devel/bison-2.3
>>    ## Package checksum matches.
>>  :: (87/141) >>> sys-devel/flex-2.5.33-r3
>>    ## Package checksum matches.
>>  :: (88/141) >>> app-arch/unzip-5.52-r2
>>    ## Package checksum matches.
>>  :: (89/141) >>> app-arch/zip-2.32-r1
>>    ## Package checksum matches.
>>  :: (90/141) >>> media-libs/libart_lgpl-2.3.20
>>    ## Package checksum matches.
>>  :: (91/141) >>> sys-devel/gcc-4.2.3
>>    ## Package checksum matches.
>>  :: (92/141) >>> sys-devel/gcc-config-1.4.0-r4
>>    ## Package checksum matches.
>>  :: (93/141) >>> sys-devel/gettext-0.17
>>    ## Package checksum matches.
>>  :: (94/141) >>> sys-devel/gnuconfig-20070724
>>    ## Package checksum matches.
>>  :: (95/141) >>> sys-devel/libperl-5.8.8-r1
>>    ## Package checksum matches.
>>  :: (96/141) >>> sys-devel/libtool-1.5.26
>>    ## Package checksum matches.
>>  :: (97/141) >>> sys-devel/m4-1.4.10-r1
>>    ## Package checksum matches.
>>  :: (98/141) >>> sys-devel/make-3.81
>>    ## Package checksum matches.
>>  :: (99/141) >>> sys-devel/patch-2.5.9-r1
>>    ## Package checksum matches.
>>  :: (100/141) >>> sys-libs/com_err-1.40.8
>>    ## Package checksum matches.
>>  :: (101/141) >>> sys-libs/ss-1.40.8
>>    ## Package checksum matches.
>>  :: (102/141) >>> sys-fs/e2fsprogs-1.40.8
>>    ## Package checksum matches.
>>  :: (103/141) >>> sys-fs/udev-120
>>    ## Package checksum matches.
>>  :: (104/141) >>> sys-kernel/linux-headers-2.6.24
>>    ## Package checksum matches.
>>  :: (105/141) >>> sys-libs/cracklib-2.8.12
>>    ## Package checksum matches.
>>  :: (106/141) >>> sys-libs/db-4.5.20_p2
>>    ## Package checksum matches.
>>  :: (107/141) >>> sys-libs/gdbm-1.8.3-r3
>>    ## Package checksum matches.
>>  :: (108/141) >>> sys-libs/glibc-2.7-r1
>>    ## Package checksum matches.
>>  :: (109/141) >>> sys-libs/gpm-1.20.1-r6
>>    ## Package checksum matches.
>>  :: (110/141) >>> sys-libs/ncurses-5.6-r2
>>    ## Package checksum matches.
>>  :: (111/141) >>> sys-libs/pam-1.0.0
>>    ## Package checksum matches.
>>  :: (112/141) >>> sys-libs/readline-5.2_p12-r1
>>    ## Package checksum matches.
>>  :: (113/141) >>> sys-libs/timezone-data-2007k
>>    ## Package checksum matches.
>>  :: (114/141) >>> sys-libs/zlib-1.2.3-r1
>>    ## Package checksum matches.
>>  :: (115/141) >>> sys-process/procps-3.2.7
>>    ## Package checksum matches.
>>  :: (116/141) >>> sys-process/psmisc-22.6
>>    ## Package checksum matches.
>>  :: (117/141) >>> virtual/editor-0
>>    ## Package checksum matches.
>>  :: (118/141) >>> virtual/init-0
>>    ## Package checksum matches.
>>  :: (119/141) >>> virtual/libiconv-0
>>    ## Package checksum matches.
>>  :: (120/141) >>> virtual/libintl-0
>>    ## Package checksum matches.
>>  :: (121/141) >>> virtual/perl-MIME-Base64-3.07
>>    ## Package checksum matches.
>>  :: (122/141) >>> x11-apps/xauth-1.0.2
>>    ## Package checksum matches.
>>  :: (123/141) >>> x11-libs/libICE-1.0.4
>>    ## Package checksum matches.
>>  :: (124/141) >>> x11-libs/libSM-1.0.3
>>    ## Package checksum matches.
>>  :: (125/141) >>> dev-libs/libpthread-stubs-0.1
>>    ## Package checksum matches.
>>  :: (126/141) >>> x11-libs/libxcb-1.1-r1
>>    ## Package checksum matches.
>>  :: (127/141) >>> x11-libs/libX11-1.1.4
>>    ## Package checksum matches.
>>  :: (128/141) >>> x11-libs/libXau-1.0.3
>>    ## Package checksum matches.
>>  :: (129/141) >>> x11-libs/libXdmcp-1.0.2
>>    ## Package checksum matches.
>>  :: (130/141) >>> x11-libs/libXext-1.0.4
>>    ## Package checksum matches.
>>  :: (131/141) >>> x11-libs/libXmu-1.0.3
>>    ## Package checksum matches.
>>  :: (132/141) >>> x11-libs/libXt-1.0.5
>>    ## Package checksum matches.
>>  :: (133/141) >>> x11-libs/xtrans-1.0.4
>>    ## Package checksum matches.
>>  :: (134/141) >>> x11-misc/util-macros-1.1.5
>>    ## Package checksum matches.
>>  :: (135/141) >>> x11-proto/bigreqsproto-1.0.2
>>    ## Package checksum matches.
>>  :: (136/141) >>> x11-proto/inputproto-1.4.3-r1
>>    ## Package checksum matches.
>>  :: (137/141) >>> x11-proto/kbproto-1.0.3
>>    ## Package checksum matches.
>>  :: (138/141) >>> x11-proto/xcmiscproto-1.1.2
>>    ## Package checksum matches.
>>  :: (139/141) >>> x11-proto/xextproto-7.0.2
>>    ## Package checksum matches.
>>  :: (140/141) >>> x11-proto/xf86bigfontproto-1.1.2
>>    ## Package checksum matches.
>>  :: (141/141) >>> x11-proto/xproto-7.0.12
>>    ## Package checksum matches.
>>  ++ (1/141) >>> sys-apps/entropy-0.15.21.3
>>    ## Ebuild: pkg_prerm()
>>    ## Ebuild: pkg_postrm()
>>    ## Unpacking package: sys-apps:entropy-0.15.21.3~0.tbz2
>>    ## Ebuild: pkg_preinst()
>>    ## Installing package: sys-apps/entropy-0.15.21.3
>>    ## Updating database: sys-apps/entropy-0.15.21.3
/usr/bin/equo: line 4:  5293 Segmentation fault      LD_LIBRARY_PATH="/usr/lib/entropy/client/lib/:/usr/lib/entropy/client/libraries/pysqlite2/" python equo.py "[email protected]"
Image

eMxyzptlk
Young Hen
Posts: 23
Joined: Sat Jun 07, 2008 1:15
Location: Rennes
Contact:

Re: Installing on an Encrypted LVM partition

Post by eMxyzptlk » Sat Jun 07, 2008 15:07

Okay well I decided to workaround the installer myself, I'm on the livecd now Installing and so far so good, I just wanted to post some (unrelated to the initial problem) bugs I found before I forget them...

in /opt/anaconda/usr/lib/anaconda/fsset.py line 1682, when you're looking the root device you should also replace '-' with '--', Okay I know LVM names with '-' aren't standard, but every other OS accept them, so should Sabayon... here's a patch :

Code: Select all

--- /mnt/livecd/opt/anaconda/usr/lib/anaconda/fsset.py  2008-03-13 23:43:00.000000000 +0000
+++ /opt/anaconda/usr/lib/anaconda/fsset.py     2008-06-07 14:47:18.125786029 +0000
@@ -1679,7 +1679,9 @@
                 iutil.makeDMNode(root=instPath)
             if not os.path.isdir(rootdir):
                 os.makedirs(rootdir)
-            dmdev = "/dev/mapper/" + root.device.getDevice().replace("/", "-")
+            rootdevice = root.device.getDevice().replace("-", "--")
+            rootdevice = rootdevice.replace("/", "-")
+            dmdev = "/dev/mapper/" + rootdevice
             if os.path.exists(instPath + dmdev):
                 os.unlink(instPath + dmdev)
             iutil.copyDeviceNode(dmdev, instPath + dmdev)
What I basiclly did is hard code the LVM partition when the installer look for it... here's an unrevised NOT completely tested patch...

Code: Select all

diff -Naur anaconda.orig/anaconda-launcher anaconda/anaconda-launcher
--- anaconda.orig/anaconda-launcher	2008-06-07 14:59:38.000000000 +0000
+++ anaconda/anaconda-launcher	2008-06-07 14:59:59.000000000 +0000
@@ -13,9 +13,9 @@
 
     # check for X server or for $FORCE_TEXT --> $FORCE_TEXT is not NULL
     if [ -n "$DISPLAY" ] && [ -z "$FORCE_TEXT" ]; then
-        /usr/bin/python $ANACONDA_PATH/usr/bin/anaconda -m directcopy://:/mnt/livecd --graphical
+        /usr/bin/python $ANACONDA_PATH/usr/bin/anaconda -m directcopy://:/ --graphical
     else
-        /usr/bin/python $ANACONDA_PATH/usr/bin/anaconda -m directcopy://:/mnt/livecd --text
+        /usr/bin/python $ANACONDA_PATH/usr/bin/anaconda -m directcopy://:/ --text
     fi
 
     ANACONDA_STATUS=$?
diff -Naur anaconda.orig/usr/bin/anaconda anaconda/usr/bin/anaconda
--- anaconda.orig/usr/bin/anaconda	2008-06-07 14:59:38.000000000 +0000
+++ anaconda/usr/bin/anaconda	2008-06-07 14:59:59.000000000 +0000
@@ -156,7 +156,7 @@
 #
 # parse off command line arguments
 #
-method = "directcopy://:/mnt/livecd"
+method = "directcopy://:/"
 flags.selinux = 0
 for n in savedargs:
 
diff -Naur anaconda.orig/usr/lib/anaconda/fsset.py anaconda/usr/lib/anaconda/fsset.py
--- anaconda.orig/usr/lib/anaconda/fsset.py	2008-06-07 14:59:38.000000000 +0000
+++ anaconda/usr/lib/anaconda/fsset.py	2008-06-07 15:00:00.000000000 +0000
@@ -1679,7 +1679,9 @@
                 iutil.makeDMNode(root=instPath)
             if not os.path.isdir(rootdir):
                 os.makedirs(rootdir)
-            dmdev = "/dev/mapper/" + root.device.getDevice().replace("/", "-")
+	    rootdevice = root.device.getDevice().replace("-", "--")
+	    rootdevice = rootdevice.replace("/", "-")
+            dmdev = "/dev/mapper/" + rootdevice
             if os.path.exists(instPath + dmdev):
                 os.unlink(instPath + dmdev)
             iutil.copyDeviceNode(dmdev, instPath + dmdev)
diff -Naur anaconda.orig/usr/lib/anaconda/lvm.py anaconda/usr/lib/anaconda/lvm.py
--- anaconda.orig/usr/lib/anaconda/lvm.py	2008-06-07 14:59:38.000000000 +0000
+++ anaconda/usr/lib/anaconda/lvm.py	2008-06-07 15:00:00.000000000 +0000
@@ -257,6 +257,7 @@
                                     stderr = "/dev/tty6")
     for line in scanout.split("\n"):
         try:
+            line = "phoenix:119881596928:4194304"
             (dev, vg, size) = line.strip().split(':')
             size = long(math.floor(long(size) / (1024 * 1024)))
         except:
The line

Code: Select all

line = "phoenix:119881596928:4194304"
must be changed for each user...

Code: Select all

line = "##REPLACE ME ##"
replace the "##REPLACE ME ##" with the output of

Code: Select all

lvm pvdisplay -C --noheadings --units b --nosuffix --separator ':' --options pv_name,vg_name,dev_size
you don't need the hardcoded path, just the node name...


Once I finished testing/intsalling I'll post a detailed guide and perhaps developers could also fix some bugs I may discover along the way
Last edited by eMxyzptlk on Sun Jun 08, 2008 13:28, edited 1 time in total.
Image

eMxyzptlk
Young Hen
Posts: 23
Joined: Sat Jun 07, 2008 1:15
Location: Rennes
Contact:

Re: Installing on an Encrypted LVM partition

Post by eMxyzptlk » Sat Jun 07, 2008 15:21

I just noticed something, doesn't the installer ( Presume nothing was omitted from the installer, everything was selected and forget about passwords or bootloader...) just copy everything from the livecd to the HDD ?? I don't mean the folders isolinux, or GEEXBOX, I just mean the contents of livecd.squashfs ??

if that's the case it would be too easy to install, I'll copy everything myself, create the users, generate the initramfs and boot it...
Image

Post Reply