I downloaded and extracted stage1-x86-selinux-20040207.tar.bz2 to /mnt/gentoo as instructed. I get errors when I run env-update and emerge sync that prevent installation from continuing. Reproducible: Always Steps to Reproduce: 1. Install per the guide at http://www.gentoo.org/proj/en/hardened/selinux/selinux-x86-install.xml through step 8. 2. mount the proc and selinux filesystems per step 8 of the install guide, copy resolv.conf as instructed, then chroot 3. run env-update, you will get an error (see actual results) 4. the error suggests running emerge sync to fix it. This is the next step suggested in install guide step #8 as well. Run emerge sync, it will cause the same error. Actual Results: livecd gentoo # md5sum stage1-x86-selinux-20040207.tar.bz2.tar a4b4977f47ab2c4ffe17220af304ef7e stage1-x86-selinux-20040207.tar.bz2.tar livecd gentoo # rm stage1-x86-selinux-20040207.tar.bz2.tar livecd gentoo # ls bin dev home lost+found opt root selinux tmp var boot etc lib mnt proc sbin sys usr livecd gentoo # mount -t proc proc /mnt/gentoo/proc livecd gentoo # mount -t selinuxfs none /mnt/gentoo/selinux livecd gentoo # cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf livecd gentoo # chroot /mnt/gentoo/ /bin/bash livecd / # env-update !!! Parse error in /etc/make.profile/make.defaults. Never modify this file. !!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does !!! not then please report this to bugs.gentoo.org and, if possible, a dev !!! on #gentoo (irc.freenode.org) livecd / # source /etc/profile livecd / # emerge sync !!! Parse error in /etc/make.profile/make.defaults. Never modify this file. !!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does !!! not then please report this to bugs.gentoo.org and, if possible, a dev !!! on #gentoo (irc.freenode.org) Expected Results: I expected to have sync'ed the portage tree so that I could continue my stage1 install of Hardened Gentoo. I verified the md5sum against the one on the ftp. It matched. /etc/make.profile is linked to ../usr/portage/profiles/selinux-x86-1.4 ../usr/portage does not exist!
I get the same results with stage2. The md5sum matched as well.
The stage3 tarball is incomplete: ./usr/lib/perl5/5.8.2/i386-linux/auto/Encode/TW/TW.bs ./usr/lib/perl5/5.8.2/i386-linux/auto/Encode/TW/TW.so bzip2: Data integrity error when decompressing. Input file = (stdin), output file = (stdout) It is possible that the compressed file(s) have become corrupted. You can use the -tvv option to test integrity of such files. It matches the md5sum on the mirror.
/usr/portage does not exist in the part of stage3 that did extract however.
This actually came up as a bug in portage during stage building. Until I put a fixed set of stages on the mirrors, you can work around it bydoing: mkdir -p /usr/portage/profiles/selinux-x86-1.4/ touch /usr/portage/profiles/selinux-x86-1.4/make.defaults
20040211 stages on the mirrors with the updated portage to fix this