Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 316207 Details for
Bug 423149
sys-libs/glibc-2.14.1-r3 - !!! FAILED postinst: 1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Script reproducing the problem
gentoo-install-script.sh (text/plain), 8.30 KB, created by
Michael Mol
on 2012-06-25 02:39:15 UTC
(
hide
)
Description:
Script reproducing the problem
Filename:
MIME Type:
Creator:
Michael Mol
Created:
2012-06-25 02:39:15 UTC
Size:
8.30 KB
patch
obsolete
>#!/bin/sh > ># Configuration variables > ># The script assumes the /boot and /home partitions already exist, are ># formatted, and may be mounted by specifying the filesystems' UUID. ># It also presumes that there's an HTTP proxy server available. > >#Mirror for portage snapshot and stage3 tarball >MIRROR=http://mirror.mcs.anl.gov/ > >#Rsync mirror >SYNC=rsync://wash.firefly.michael.mol.name/gentoo-portage > >#HTTP proxy >http_proxy=http://wash.firefly.michael.mol.name:8123 > >#Mirror base path >MIRROR_BASE_PATH=pub/gentoo/ > >#stage 3 relative path >STAGE_PATH=releases/amd64/current-stage3/ > >#portage snapshot relative path >PORTAGE_PATH=snapshots/ > >#Stage3 tarball >STAGE_BALL=stage3-amd64-20120621.tar.bz2 > >#Portage snapshot tarball >PORTAGE_SNAPSHOT=portage-latest.tar.bz2 > >#Root filesystem device >ROOTDEV=/dev/md0 > >#Boot filesystem UUID >FS_BOOT_UUID=3d43226b-ff73-4369-829c-bd5cf90b3063 >#Swap filesystem UUID >FS_SWAP_UUID=f2a33afa-8d3c-4b57-849f-41fc03210b59 >#home filesystem UUID >FS_HOME_UUID=d7c17623-255b-4313-b50b-99f0f79a0681 >#assigned later >FS_ROOT_UUID="" > >ETC_CONFD_HOSTNAME="inara" > >read -r -d '' ETC_CONFD_NET_FILE_CONTENT <<'EOF' >config_eth0="dhcp" >EOF > >#make.conf > >read -r -d '' MAKE_CONF <<'EOF' >CFLAGS="-O2 -pipe -march=native -ggdb3" >CXXFLAGS="${CFLAGS}" > >MAKEOPTS="--jobs --load 8" >EMERGE_DEFAULT_OPTS="--jobs --load-average=8 --verbose --tree --keep-going --with-bdeps=y" >FEATURES="splitdebug" >LINGUAS="en" > >SYS_USE_CPU="mmx sse sse2 sse3 ssse3 openmp opencl cuda posix nptl multilib smp lapack" >SYS_USE_LANG="" >SYS_USE_TOOLKITS="gtk" >SYS_USE_GAPI="gd sdl ncurses xcb opengl v4l vdpau xv X dri" >SYS_USE_AAPI="openal alsa" >SYS_USE_OTHER="acl alsa cdr crypt cups dvd dvdr firefox gmp iconv nsplugin offensive pcre pda rss spell taglib truetype videos vim-syntax xattr xcomposite xft xinerama xml xscreensaver fontconfig qt3support phonon" >SYS_USE_COMPRESSION="bzip2 gzip lzma lzo szip zlib" >SYS_USE_MEDIA_GFX="imagemagick jpeg jpeg2k openexr png raw svg tiff wmf mng" >SYS_USE_MEDIA_AUDIO="aac cdda flac gsm lame mad mikmod shorten speex timidity vorbis mp3 midi" >SYS_USE_MEDIA_VIDEO="css dv ffmpeg theora x264 xvid" >SYS_USE_MEDIA_CONTAINERS="matroska mms mp4 mpeg ogg pdf quicktime vcd" >SYS_USE_MEDIA="${SYS_USE_MEDIA_GFX} ${SYS_USE_MEDIA_AUDIO} ${SYS_USE_MEDIA_VIDEO} ${SYS_USE_MEDIA_CONTAINERS} sound cddb encode exif gimp libsamplerate mtp ppds sndfile sox wavpack xmp latex" > >SYS_USE_NET="avahi curl ftp geoip gnutls ipv6 libwww rdesktop samba sockets ssl tcpd vnc" >SYS_USE_PLATFORM="acpi dbus fam hddtemp ieee1394 joystick libnotify lm_sensors pam readline sharedmem syslog sysvipc threads udev unicode usb" > >SYS_USE_DONOTWANT="-pulseaudio -gnome -oss -berkdb -gdbm" > >USE="${SYS_USE_CPU} ${SYS_USE_LANG} ${SYS_USE_TOOLKITS} ${SYS_USE_GAPI} ${SYS_USE_AAPI} ${SYS_USE_OTHER} ${SYS_USE_MEDIA} ${SYS_USE_COMPRESSION} ${SYS_USE_NET} ${SYS_USE_PLATFORM} ${SYS_USE_DONOTWANT}" > >GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://mirrors.cs.wmich.edu/gentoo http://gentoo.mirrors.tds.net/gentoo" > >VIDEO_CARDS="nvidia" >INPUT_DEVICES="evdev" >ALSA_CARDS="" > >ACCEPT_LICENSE="AdobeFlash-10.3" ># PORTAGE_BINHOST="http://binhost.ossdl.de/x86_64-pc-linux-gnu/" > >#PKGDIR="/mnt/r5/pkgdir" >#PORTAGE_TMPDIR="/mnt/r5/portage_tmp" > >CHOST="x86_64-pc-linux-gnu" >EOF > >echo "Grabbing release and portage tarballs" > >ROOTPATH="$MIRROR$MIRROR_BASE_PATH" > >STAGEFILEPATH="$ROOTPATH$STAGE_PATH$STAGE_BALL" >if [[ ! -f $STAGE_BALL ]]; then > wget "$STAGEFILEPATH" >fi >unset STAGEFILEPATH > >PORTAGEFILEPATH="$ROOTPATH$PORTAGE_PATH$PORTAGE_SNAPSHOT" >if [[ ! -f $PORTAGE_SNAPSHOT ]]; then > wget "$PORTAGEFILEPATH" >fi >unset PORTAGEFILEPATH > >unset ROOTPATH > >echo "Creating the filesystem" > >#Create the filesystem >mkfs.ext4 -F "$ROOTDEV" > >echo "Extracting the root filesystem's UUID." >FS_ROOT_UUID=$(tune2fs -l "$ROOTDEV"|grep "Filesystem UUID"|cut -f2 -d:|sed -e 's/ \+//') > >echo "Mounting the filesystem" > ># mount the root filesystem >mount "$ROOTDEV" /mnt/gentoo > ># Here, we deviate from the handbook; we'll mount /boot once we're chrooted. ># Instead, we go ahead and unpack our tarballs. > >echo "Unpacking the stage tarball" > >tar xvjpf "$STAGE_BALL" -C /mnt/gentoo > >echo "Unpacking the portage snapshot." > >tar xvjpf "$PORTAGE_SNAPSHOT" -C /mnt/gentoo/usr > > ># Another deviation. Rather than assemble make.conf the Handbook way, we'll ># use a lump make.conf I already use. >echo "Unpacking make.conf." > >echo "$MAKE_CONF" > /mnt/gentoo/etc/make.conf > >echo "Adding rsync mirror" >echo "SYNC=$SYNC" >> /mnt/gentoo/etc/make.conf > >echo "Copying autodiscovered DNS details" > >cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf > >echo "Mounting dev, proc, etc in target environment" > >mount -t proc none /mnt/gentoo/proc >if [[ $? -ne 0 ]]; then exit 1; fi >mount --rbind /dev /mnt/gentoo/dev/ >if [[ $? -ne 0 ]]; then exit 1; fi > ># And that's everything we do *outside* the chroot. ># we still want automation inside the chroot. So we build a second script to ># run in there. > >read -r -d '' INNER_SCRIPT <<'INNERSCRIPT' > >env-update >source /etc/profile >export PS1="(autochroot) $PS1" # Not that the user will see this. > ># Is there any reason the handbook specifies anything but emerges to be done ># _after_ the chroot? > ># Extract data passed to us from the pre-chroot script. >FS_ROOT_UUID="$1" >FS_BOOT_UUID="$2" >FS_SWAP_UUID="$3" >FS_HOME_UUID="$4" >SYS_HOSTNAME="$5" >ETC_CONFD_NET_FILE_CONTENT="$6" >http_proxy="$7" > ># We need to finish the base configuration. After that, we can go on and try ># and update. > >emerge --sync > >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi > ># We're going to skip over configuring and installing grub and the kernel. I'm ># assuming this has already been done, and that grub and the built kernel both ># comfortably reside under /boot. Why? Because doing so has saved me a ton of ># time on my own setup, this week. > ># Now, we need to build /etc/fstab. We don't give a crap about what's already ># there. We'll build it line-by-line. > ># Clear out what's already there, first. >echo "" > /etc/fstab > >echo "UUID=$FS_BOOT_UUID\t/boot\text4\tdefaults,noatime\t1\t2" >> /etc/fstab >echo "UUID=$FS_SWAP_UUID\tnone\tswap\tsw\t0\t0" >> /etc/fstab >echo "UUID=$FS_ROOT_UUID\t/\text4\tnoatime\t0\t1" >> /etc/fstab >echo "UUID=$FS_HOME_UUID\t/home\text4\tnoatime\t0\t1" >> /etc/fstab >echo "/dev/cdrom\t/mnt/cdrom\tauto\tuser,noauto\t0\t0" >> /etc/fstab > ># Set the system hostname >echo "hostname=\"$SYS_HOSTNAME\"" > /etc/conf.d/hostname > ># Write the etc/conf.d/net file. >echo "$ETC_CONFD_NET_FILE_CONTENT" > /etc/conf.d/net > ># Set the locales. >read -r -d '' LOCALE_GEN_FILE_CONTENT <<'EOF' >en_US ISO-8859-1 >en_US.UTF-8 UTF-8 >EOF > >echo "$ETC_LOCALE_GEN_FILE_CONTENT" > /etc/locale.gen > >locale-gen > >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi > >read -r -d '' LOCALE_FILE_CONTENT <<'EOF' >LANG="en_US.UTF-8" >LC_COLLATE="C" >EOF > >echo "$LOCALE_FILE_CONTENT" > /etc/env.d/02locale > >env-update && source /etc/profile > ># Before we install the 'necessary system tools', let's make sure ># our portage is up to date. >emerge --update --deep --newuse sys-apps/portage >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi > ># OK, now on to the necessary system tools. > >emerge syslog-ng >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi >rc-update add syslog-ng default > >emerge vixie-cron >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi >rc-update add vixie-cron default > >emerge sys-apps/mlocate >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi > ># Not installing sshd, because I don't want this script to become a vulnerable- ># by-default thing. > >emerge dhcpcd >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi > ># And that's everything we're going to do...now it's time to see if the system ># gets hosed by a full update. > >emerge --update --deep --newuse @world >if [[ $? -ne 0 ]]; then > umount -l /dev > umount /proc > exit 1; >fi > >echo "SUCCESS!" >INNERSCRIPT > >echo "Preparing chroot script" > ># Write the script. >echo "$INNER_SCRIPT" > /mnt/gentoo/chroot_inner_script.sh > >echo "Running chroot script" > ># and run it. Wish us luck! >chroot /mnt/gentoo/ /bin/bash /chroot_inner_script.sh "$FS_ROOT_UUID" "$FS_BOOT_UUID" "$FS_SWAP_UUID" "$FS_HOME_UUID" "$SYS_HOSTNAME" "$ETC_CONFD_NET_FILE_CONTENT" "$http_proxy" > >if [[ $? -ne 0 ]]; then > echo "chroot install script failed. Read output, collect logs, submit bugs..." >fi
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 423149
:
316071
|
316075
| 316207