/[smeserver]/rpms/anaconda/sme9/anaconda-centos-droprepos.patch
ViewVC logotype

Contents of /rpms/anaconda/sme9/anaconda-centos-droprepos.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Sep 30 09:32:19 2015 UTC (9 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: anaconda-13_21_239-1_el6_sme, anaconda-13_21_239_1-1_el6_sme, anaconda-13_21_263-1_el6_sme_1, anaconda-13_21_239-1_el6_sme_1, anaconda-13_21_239-1_el6_sme_2, anaconda-13_21_254-1_el6_sme_2, anaconda-13_21_254-1_el6_sme_1, HEAD
Changes since 1.1: +1273 -4 lines
Rebase to 13.21.239

1 diff -uNrp anaconda-13.21.239.orig/scripts/upd-instroot anaconda-13.21.239/scripts/upd-instroot
2 --- anaconda-13.21.239.orig/scripts/upd-instroot 2015-06-20 00:23:40.000000000 +0000
3 +++ anaconda-13.21.239/scripts/upd-instroot 2015-07-24 14:37:56.299144127 +0000
4 @@ -409,7 +409,7 @@ etc/shells
5 etc/sysconfig/network-scripts/network-functions*
6 etc/udev
7 etc/wpa_supplicant/wpa_supplicant.conf
8 -etc/yum.repos.d/*
9 +etc/yum.repos.d/installer.repo
10 etc/yum/pluginconf.d/*.conf
11 lib/terminfo
12 lib/udev
13 diff -uNrp anaconda-13.21.239.orig/scripts/upd-instroot.orig anaconda-13.21.239/scripts/upd-instroot.orig
14 --- anaconda-13.21.239.orig/scripts/upd-instroot.orig 1970-01-01 00:00:00.000000000 +0000
15 +++ anaconda-13.21.239/scripts/upd-instroot.orig 2015-06-20 00:23:40.000000000 +0000
16 @@ -0,0 +1,1265 @@
17 +#!/bin/bash
18 +#
19 +# upd-instroot
20 +#
21 +# Copyright (C) 2007, 2008 Red Hat, Inc. All rights reserved.
22 +#
23 +# This program is free software; you can redistribute it and/or modify
24 +# it under the terms of the GNU General Public License as published by
25 +# the Free Software Foundation; either version 2 of the License, or
26 +# (at your option) any later version.
27 +#
28 +# This program is distributed in the hope that it will be useful,
29 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
30 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 +# GNU General Public License for more details.
32 +#
33 +# You should have received a copy of the GNU General Public License
34 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
35 +#
36 +
37 +ORIGDIR=`pwd`
38 +DEBUG=""
39 +ARCH=`uname -m`
40 +
41 +while [ $# -gt 0 ]; do
42 + case $1 in
43 + --debug)
44 + DEBUG="--debug"
45 + shift
46 + ;;
47 +
48 + --arch)
49 + ARCH=$2
50 + shift; shift
51 + ;;
52 +
53 + --imgdir)
54 + DEST=$2
55 + shift; shift
56 + ;;
57 +
58 + # a filesystem tree to use as updates. could be the output
59 + # of 'make install' from anaconda...
60 + --updates)
61 + UPDATES=$2
62 + shift; shift
63 + ;;
64 +
65 + --nogr)
66 + echo "*** DeprecationWarning: ignoring --nogr option." >&2
67 + shift
68 + ;;
69 +
70 + --mindir)
71 + echo "*** DeprecationWarning: ignoring --mindir option." >&2
72 + shift; shift
73 + ;;
74 +
75 + --stg2dir)
76 + echo "*** DeprecationWarning: please use --imgdir instead of --stg2dir." >&2
77 + shift; shift
78 + ;;
79 +
80 + *)
81 + yumconf=$1
82 + shift
83 + ;;
84 + esac
85 +done
86 +
87 +if [ -z "$yumconf" ]; then
88 + echo "upd-instroot: updates instimage from a Red Hat RPMS directory"
89 + echo "usage: $0 [--debug] [--arch arch] [--imgdir imgdir] [yumconf]"
90 + exit 1
91 +fi
92 +
93 +if [ $ARCH = x86_64 -o $ARCH = s390x -o $ARCH = ppc64 ]; then
94 + LIBDIR=lib64
95 +else
96 + LIBDIR=lib
97 +fi
98 +
99 +if [ -z "$DEST" ]; then
100 + DEST=`mktemp -d ${TMPDIR:-/tmp}/dest.XXXXXX`
101 +fi
102 +
103 +if [ ! -f $yumconf ]; then
104 + echo "Unable to find yum repo information!"
105 + exit 1
106 +fi
107 +
108 +. $(dirname $0)/buildinstall.functions
109 +
110 +expandPackageSet() {
111 + YUMCONF=$1
112 + YUMDIR=$2
113 + RPMS=$3
114 + PKGDEST=$4
115 + KEEPFILES=$5
116 +
117 + [ -d $PKGDEST ] || die "ERROR: directory missing: $PKGDEST"
118 +
119 + [ -z "$DEBUG" ] && outlvl="--quiet" || outlvl="--verbose"
120 +
121 + yum $outlvl -c $YUMCONF -y --installroot=$YUMDIR install $RPMS 2>&1 || die "ERROR: could not install packages"
122 +
123 + if [ -n "$UPDATES" ]; then
124 + (cd $UPDATES; find) | (cd $UPDATES ; /bin/cpio --quiet -pmdu $YUMDIR)
125 + fi
126 +
127 + # figure out the theme to keep
128 + if [ -f $YUMDIR/etc/gtk-2.0/gtkrc ]; then
129 + gtktheme=$(grep "gtk-theme-name" $YUMDIR/etc/gtk-2.0/gtkrc | awk {'print $3;'} | sed -e 's/"//g')
130 + echo "usr/share/themes/$gtktheme" >> $KEEPFILES
131 + # find gtk engine needed
132 + for engine in `grep engine $YUMDIR/usr/share/themes/$gtktheme/gtk-2.0/gtkrc | grep -v ^# | awk {'print $2;'} | sed -e 's/"//g' | sort -u` ; do
133 + echo "usr/$LIBDIR/gtk-2.0/*/engines/*$engine*" >> $KEEPFILES
134 + done
135 +
136 + theme=$(grep "gtk-icon-theme-name" $YUMDIR/etc/gtk-2.0/gtkrc | awk {'print $3;'} | sed -e 's/"//g')
137 + while [ -n "$theme" ]; do
138 + echo "usr/share/icons/$theme" >> $KEEPFILES
139 + theme=$(grep Inherits $YUMDIR/usr/share/icons/$theme/index.theme | cut -d = -f 2)
140 + done
141 +
142 + cursortheme=$(grep "gtk-cursor-theme-name" $YUMDIR/etc/gtk-2.0/gtkrc | awk {'print $3;'} | sed -e 's/"//g')
143 + if [ -n "$cursortheme" ]; then
144 + echo "usr/share/icons/$cursortheme" >> $KEEPFILES
145 + fi
146 + fi
147 +
148 + echo `date` "Installing files"
149 + pushd $YUMDIR >/dev/null
150 + cat $KEEPFILES | while read spec ; do
151 + #Pull off path
152 + path=`echo "$spec" | sed 's,\([^[*\?]*\)/.*,\1,'`
153 + for filespec in `find ./$path -path "./$spec" 2> /dev/null` ; do
154 + if [ ! -e $filespec ]; then
155 + continue
156 + elif [ ! -d $filespec ]; then
157 + instFile $filespec $PKGDEST
158 + else
159 + for i in `find $filespec -type f 2> /dev/null` ; do instFile $i $PKGDEST ; done
160 + for i in `find $filespec -type l 2> /dev/null` ; do instFile $i $PKGDEST ; done
161 + for d in `find $filespec -type d 2> /dev/null` ; do instDir $d $PKGDEST ; done
162 + fi
163 + done
164 + done
165 + popd >/dev/null
166 +}
167 +
168 +die () {
169 + echo "$@"
170 + echo "Aborting instroot creation..."
171 + exit 1
172 +}
173 +
174 +PACKAGES="GConf2 NetworkManager NetworkManager-gnome ORBit2 acl anaconda
175 + anaconda-yum-plugins at-spi atk attr audit-libs bash bind-utils
176 + biosdevname bitmap-fangsongti-fonts
177 + btrfs-progs bzip2 bzip2-libs ca-certificates cairo cjkuni-uming-fonts
178 + comps-extras coreutils cpio cracklib cracklib-dicts cracklib-python
179 + cryptsetup-luks curl cyrus-sasl-lib db4 dbus dbus-python dbus-x11 dejavu-sans-fonts
180 + dejavu-sans-mono-fonts device-mapper device-mapper-libs
181 + device-mapper-multipath device-mapper-multipath-libs
182 + device-mapper-persistent-data
183 + dhclient dmraid dmraid-libs
184 + dogtail dosfstools e2fsprogs e2fsprogs-libs echo-icon-theme eject ethtool
185 + elfutils-libelf expat fcoe-utils fipscheck fipscheck-lib
186 + firstboot fontconfig freetype gail gawk gdb-gdbserver
187 + gdk-pixbuf gfs2-utils glib2 glibc-common gnome-python2-canvas gnome-python2-gconf
188 + gdk-pixbuf2 gnome-themes gpm grep gtk2 gtk2-engines hal
189 + hdparm hwdata initscripts iproute iputils iscsi-initiator-utils
190 + jfsutils kbd kpartx keyutils-libs krb5-libs libICE libSM libX11 libXau
191 + libXaw libXcursor libXdmcp libXevie libXext libXfixes libXfont libXft
192 + libXi libXinerama libXmu libXpm libXrandr libXrender libXt libXtst
193 + libXxf86misc libacl libaio libart_lgpl libattr libbdevid libbdevid-python
194 + libbonobo libbsd libcanberra libcanberra-gtk2 libcurl libfontenc libidn libgcc
195 + libglade2 libgnomecanvas libgcrypt libgpg-error libjpeg libmlx4 libnl libogg
196 + libpng libselinux libselinux-python libsemanage
197 + libsemanage-python libsepol libssh2 libstdc++ libtdb libthai libtirpc
198 + libtool-ltdl libuser
199 + libuser-python libvolume_id libvorbis libxcb libxkbfile libxml2 lklug-fonts lldpad
200 + lohit-assamese-fonts lohit-bengali-fonts lohit-gujarati-fonts lohit-hindi-fonts
201 + lohit-kashmiri-fonts lohit-kannada-fonts lohit-maithili-fonts lohit-marathi-fonts
202 + lohit-oriya-fonts lohit-punjabi-fonts lohit-sindhi-fonts lohit-tamil-fonts
203 + lohit-telugu-fonts lsscsi lvm2 madan-fonts mdadm
204 + mesa-dri-drivers metacity mkinitrd module-init-tools nash ncurses neon net-tools
205 + nc newt newt-python nfs-utils nspr nss nss-softokn ntfs-3g ntpdate
206 + openldap openssh openssh-server
207 + pam pango parted pciutils pcre psmisc
208 + pygtk2-libglade pykickstart pyparted python python-bugzilla python-decorator
209 + python-libs python-nss python-pyblock python-sqlite python-epdb
210 + python-urlgrabber python-volume_key pyxf86config rdate readline redhat-artwork
211 + reiserfs-utils libreport libreport-cli libreport-python libreport-gtk libreport-newt
212 + libreport-plugin-rhtsupport libreport-plugin-logger libreport-plugin-bugzilla
213 + rpm rpm-libs rpm-python rsyslog sed selinux-policy-targeted
214 + setup sg3_utils sg3_utils-libs shared-mime-info slang smc-meera-fonts specspo sqlite startup-notification
215 + subscription-manager synaptics system-config-date
216 + system-config-keyboard ${brandpkgname}-logos ${brandpkgname}-release
217 + sysvinit-tools tcp_wrappers tcp_wrappers-libs telnet
218 + tzdata udev un-core-dotum-fonts urw-fonts util-linux-ng tigervnc-server
219 + tigervnc-server-module vconfig virt-what vlgothic-fonts vim-minimal
220 + wget which wpa_supplicant xcb-util xkeyboard-config xfsprogs xorg-x11-xauth
221 + xorg-x11-drivers xorg-x11-font-utils xorg-x11-fonts-ethiopic
222 + xorg-x11-fonts-misc xorg-x11-server-utils
223 + xorg-x11-server-Xorg xorg-x11-xkb-utils xorg-x11-xfs yum
224 + yum-metadata-parser zenity zlib /etc/gtk-2.0/gtkrc"
225 +
226 +if [[ $ARCH =~ i[356]86 ]]; then
227 + PACKAGES="$PACKAGES glibc.$ARCH openssl.$ARCH"
228 +elif [ $ARCH = sparc -o $ARCH = sparcv9 -o $ARCH = sparc64 ]; then
229 + PACKAGES="$PACKAGES glibc.sparcv9 openssl.sparcv9"
230 +else
231 + PACKAGES="$PACKAGES glibc openssl"
232 +fi
233 +
234 +if [[ $ARCH =~ i[356]86 || $ARCH == "x86_64" ]]; then
235 + PACKAGES="$PACKAGES pcmciautils grub"
236 +fi
237 +
238 +if [[ $ARCH =~ i[356]86 || $ARCH == "x86_64" || $ARCH == "ia64" ]]; then
239 + PACKAGES="$PACKAGES dmidecode efibootmgr"
240 +fi
241 +
242 +if [ $ARCH = ia64 ]; then
243 + # XXX this needs to switch to grub at some point...
244 + PACKAGES="$PACKAGES elilo"
245 +fi
246 +
247 +if [ $ARCH = s390 -o $ARCH = s390x ]; then
248 + PACKAGES="$PACKAGES bind-utils binutils coreutils findutils gzip
249 + initscripts iputils less libgcc login lsscsi modutils mount
250 + net-tools openssh-clients pam portmap
251 + s390utils sed strace tar xorg-x11-libs
252 + xorg-x11-xauth"
253 +fi
254 +
255 +if [ $ARCH = ppc -o $ARCH = ppc64 ]; then
256 + PACKAGES="$PACKAGES pcmciautils pdisk yaboot hfsutils kernel-bootwrapper"
257 +fi
258 +
259 +#
260 +# stuff ONLY included for rescue mode
261 +#
262 +# these packages are combined with the PACKAGES for big stage 2
263 +#
264 +PACKAGESRESCUE="bzip2 bzip2-libs dump
265 + findutils ftp gzip iputils joe krb5-libs less man
266 + modutils mtools mt-st mtr net-tools smartmontools
267 + openssh openssh-clients pciutils rsh traceroute tar rsync
268 + device-mapper device-mapper-libs dmraid ntfsprogs samba-client
269 + firstaidkit firstaidkit-engine firstaidkit-plugin-passwd
270 + firstaidkit-plugin-xserver firstaidkit-gui
271 + firstaidkit-plugin-mdadm-conf firstaidkit-plugin-key-recovery
272 + volume_key"
273 +
274 +if [[ $ARCH =~ i[356]86 || $ARCH == "x86_64" ]]; then
275 + PACKAGESRESCUE="$PACKAGESRESCUE gpart grub firstaidkit-plugin-grub"
276 +fi
277 +
278 +#
279 +# add bootloader for particular arch
280 +#
281 +if [ $ARCH = sparc -o $ARCH = sparcv9 -o $ARCH = sparc64 ]; then
282 + PACKAGES="$PACKAGES tilo silo"
283 +fi
284 +
285 +if [[ $ARCH =~ i[356]86 || $ARCH == "x86_64" ]]; then
286 + PACKAGES="$PACKAGES syslinux memtest86+ grub"
287 +fi
288 +
289 +if [ $ARCH = alpha ]; then
290 + PACKAGES="$PACKAGES aboot"
291 +fi
292 +
293 +if [ $ARCH = ppc ]; then
294 + PACKAGES="$PACKAGES fbset yaboot ppc64-utils"
295 +fi
296 +
297 +#
298 +# KEEPFILE is all files to keep from the packages in PACKAGES
299 +#
300 +# The files in this list define the install image used for all installation
301 +# methods.
302 +#
303 +# The rescue mode of anaconda uses these files as well as those defined
304 +# by KEEPFILERESCUE below. The total size of this image should be
305 +# under the size of the miniature CD used for the rescue CD (around 68MB).
306 +#
307 +KEEPFILE=${TMPDIR:-/tmp}/keepfile.$$
308 +cat > $KEEPFILE <<EOF
309 +$LIBDIR/bdevid
310 +$LIBDIR/dbus-1
311 +$LIBDIR/libaio.so*
312 +$LIBDIR/libfreebl3.so
313 +$LIBDIR/libfreebl3.chk
314 +$LIBDIR/libfreeblpriv3.chk
315 +$LIBDIR/libfreeblpriv3.so
316 +$LIBDIR/libmultipath.so*
317 +$LIBDIR/libnss_dns*
318 +$LIBDIR/libnss_files*
319 +$LIBDIR/libnssdbm3.so
320 +$LIBDIR/libnssdbm3.chk
321 +$LIBDIR/libsoftokn3.so
322 +$LIBDIR/libsoftokn3.chk
323 +$LIBDIR/libwrap*.so*
324 +$LIBDIR/multipath/*
325 +$LIBDIR/rsyslog/*
326 +$LIBDIR/security/pam_*
327 +bin/arch
328 +bin/basename
329 +bin/bash
330 +bin/cat
331 +bin/chgrp
332 +bin/chmod
333 +bin/chown
334 +bin/cp
335 +bin/cpio
336 +bin/cut
337 +bin/date
338 +bin/dbus-daemon
339 +bin/dbus-uuidgen
340 +bin/dd
341 +bin/df
342 +bin/dmesg
343 +bin/du
344 +bin/echo
345 +bin/env
346 +bin/false
347 +bin/fdisk*
348 +bin/gawk
349 +bin/*grep
350 +bin/hostname
351 +bin/ipcalc
352 +bin/kill
353 +bin/ln
354 +bin/login
355 +bin/ls
356 +bin/mkdir
357 +bin/mknod
358 +bin/mktemp
359 +bin/more
360 +bin/mount
361 +bin/mv
362 +bin/ntfs-3g
363 +bin/ping
364 +bin/ps
365 +bin/pwd
366 +bin/rm
367 +bin/rmdir
368 +bin/rpm
369 +bin/sed
370 +bin/sleep
371 +bin/sort
372 +bin/sync
373 +bin/touch
374 +bin/true
375 +bin/umount
376 +bin/uname
377 +bin/vi
378 +boot/*.b
379 +boot/bootlx
380 +boot/efi/EFI/redhat/elilo.efi
381 +boot/efi/EFI/redhat/grub.efi
382 +boot/efika.forth
383 +boot/memtest86*
384 +etc/NetworkManager/VPN
385 +etc/NetworkManager/NetworkManager.conf
386 +etc/NetworkManager/dispatcher.d
387 +etc/dbus-1/*
388 +etc/dbus-1/system.d/*
389 +etc/fb.modes
390 +etc/fcoe
391 +etc/fonts
392 +etc/gconf
393 +etc/group
394 +etc/gtk-2.0/gtkrc*
395 +etc/hal
396 +etc/hosts
397 +etc/im_palette.pal
398 +etc/imrc
399 +etc/iscsid.conf
400 +etc/lvm/profile/*
401 +etc/man.config
402 +etc/mke2fs.conf
403 +etc/modprobe.d/libmlx4.conf
404 +etc/netconfig
405 +etc/nsswitch.conf
406 +etc/pam.d/other
407 +etc/pam.d/sshd
408 +etc/pango
409 +etc/passwd
410 +etc/pcmcia
411 +etc/pki/tls/certs/ca-bundle.crt
412 +etc/polkit-1/localauthority.conf.d/*
413 +etc/polkit-1/nullbackend.conf.d/*
414 +etc/prelink.conf
415 +etc/protocols
416 +etc/rc.d/init.d/functions
417 +etc/libreport/*
418 +etc/rhsm
419 +etc/rpm/macros.prelink
420 +etc/security/limits.conf
421 +etc/security/pam_env.conf
422 +etc/selinux/targeted
423 +etc/services
424 +etc/shells
425 +etc/sysconfig/network-scripts/network-functions*
426 +etc/udev
427 +etc/wpa_supplicant/wpa_supplicant.conf
428 +etc/yum.repos.d/*
429 +etc/yum/pluginconf.d/*.conf
430 +lib/terminfo
431 +lib/udev
432 +sbin/*gfs*
433 +sbin/arping
434 +sbin/badblocks
435 +sbin/biosdevname
436 +sbin/brcm_iscsiuio
437 +sbin/blockdev
438 +sbin/btrfsctl
439 +sbin/btrfsck
440 +sbin/cciss_id
441 +sbin/clock
442 +sbin/consoletype
443 +sbin/cryptsetup
444 +sbin/debugfs
445 +sbin/debugreiserfs
446 +sbin/dhclient
447 +sbin/dhclient-script
448 +sbin/dhcp6c
449 +sbin/dosfslabel
450 +sbin/dumpe2fs
451 +sbin/fsadm
452 +sbin/e2fsck
453 +sbin/e2label
454 +sbin/ethtool
455 +sbin/fdisk
456 +sbin/fsck
457 +sbin/fsck.ext*
458 +sbin/fsck.jfs
459 +sbin/fsck.reiserfs
460 +sbin/fsck.xfs
461 +sbin/hdparm
462 +sbin/hwclock
463 +sbin/ifconfig
464 +sbin/ip
465 +sbin/iscsiadm
466 +sbin/iscsid
467 +sbin/iscsistart
468 +sbin/jfs_tune
469 +sbin/killall5
470 +sbin/kpartx
471 +sbin/ldconfig
472 +sbin/load_policy
473 +sbin/losetup
474 +sbin/lspci
475 +sbin/lvm*
476 +sbin/mdadm
477 +sbin/mdmon
478 +sbin/mkdosfs
479 +sbin/mke2fs
480 +sbin/mkfs.btrfs
481 +sbin/mkfs.ext*
482 +sbin/mkfs.gfs2
483 +sbin/mkfs.jfs
484 +sbin/mkfs.msdos
485 +sbin/mkfs.reiserfs
486 +sbin/mkfs.vfat
487 +sbin/mkfs.xfs
488 +sbin/mkofboot
489 +sbin/mkraid
490 +sbin/mkreiserfs
491 +sbin/mkswap
492 +sbin/mount.nfs*
493 +sbin/mount.ntfs*
494 +sbin/multipath
495 +sbin/nologin
496 +sbin/ofpath
497 +sbin/parted
498 +sbin/pcmcia-socket-startup
499 +sbin/pdisk
500 +sbin/probe
501 +sbin/pidof
502 +sbin/reiserfsck
503 +sbin/reiserfstune
504 +sbin/resize_reiserfs
505 +sbin/resize2fs
506 +sbin/rmmod
507 +sbin/route
508 +sbin/rsyslogd
509 +sbin/setfiles
510 +sbin/sfdisk
511 +sbin/silo
512 +sbin/swapoff
513 +sbin/swapon
514 +sbin/tune2fs
515 +sbin/udev*
516 +sbin/umount.nfs*
517 +sbin/vconfig
518 +sbin/xfs_repair
519 +sbin/xfsrestore
520 +sbin/ybin
521 +usr/$LIBDIR/NetworkManager
522 +usr/$LIBDIR/dri
523 +usr/$LIBDIR/gconv
524 +usr/$LIBDIR/gdk-pixbuf/loaders/*la*
525 +usr/$LIBDIR/gdk-pixbuf/loaders/*png*
526 +usr/$LIBDIR/gdk-pixbuf/loaders/*xpm*
527 +usr/$LIBDIR/gdk-pixbuf-2.0/*/loaders/*xpm*
528 +usr/$LIBDIR/gtk-2.0/*/engines/libclearlooks.so
529 +usr/$LIBDIR/gtk-2.0/immodules
530 +usr/$LIBDIR/kernel-wrapper/*
531 +usr/$LIBDIR/hal
532 +usr/$LIBDIR/libuser/*
533 +usr/$LIBDIR/pango
534 +usr/$LIBDIR/python?.?
535 +usr/$LIBDIR/rpm/rpmpopt
536 +usr/lib/rpm/rpmrc
537 +usr/lib/rpm/macros
538 +$LIBDIR/rsyslog
539 +usr/$LIBDIR/libiscsi.so*
540 +usr/$LIBDIR/libbsd.so*
541 +usr/$LIBDIR/libfreebl3.so
542 +usr/$LIBDIR/libfreebl3.chk
543 +usr/$LIBDIR/libfreeblpriv3.chk
544 +usr/$LIBDIR/libfreeblpriv3.so
545 +usr/$LIBDIR/libmetacity-private.so*
546 +usr/$LIBDIR/libsgutils2.so*
547 +usr/$LIBDIR/libsoftokn3.so
548 +usr/$LIBDIR/libsoftokn3.chk
549 +usr/$LIBDIR/libsqlite3.so*
550 +usr/$LIBDIR/libstrata_client*
551 +usr/$LIBDIR/xorg/modules
552 +usr/$LIBDIR/libnssdbm3.so
553 +usr/$LIBDIR/libnssdbm3.chk
554 +usr/$LIBDIR/libnss3.so
555 +usr/$LIBDIR/libnssckbi.so
556 +usr/$LIBDIR/libnsspem.so
557 +usr/$LIBDIR/libsmime3.so
558 +usr/$LIBDIR/libssl3.so
559 +usr/$LIBDIR/xserver/SecurityPolicy
560 +usr/$LIBDIR/.*.hmac
561 +$LIBDIR/libfipscheck.so*
562 +$LIBDIR/.*.hmac
563 +usr/bin/[
564 +usr/bin/Xorg
565 +usr/bin/Xvnc
566 +usr/bin/chattr*
567 +usr/bin/chvt
568 +usr/bin/clear
569 +usr/bin/curl
570 +usr/bin/dbus-launch
571 +usr/bin/dbus-launch
572 +usr/bin/du
573 +usr/bin/eject
574 +usr/bin/expr
575 +usr/bin/fipscheck
576 +usr/bin/.fipscheck.hmac
577 +usr/bin/fipshmac
578 +usr/bin/gdbserver
579 +usr/bin/gdialog
580 +usr/bin/gdk-pixbuf-query-loaders*
581 +usr/bin/getopt
582 +usr/bin/gtk-query*
583 +usr/bin/gtk-update-icon-cache*
584 +usr/bin/hattrib
585 +usr/bin/hcopy
586 +usr/bin/head
587 +usr/bin/hformat
588 +usr/bin/hmount
589 +usr/bin/humount
590 +usr/bin/id
591 +usr/bin/killall
592 +usr/bin/logger
593 +usr/bin/lsattr*
594 +usr/bin/lshal
595 +usr/bin/lsscsi
596 +usr/bin/maketilo
597 +usr/bin/md5sum
598 +usr/bin/metacity
599 +usr/bin/mkzimage
600 +usr/bin/nc
601 +usr/bin/nm-connection-editor
602 +usr/bin/nslookup
603 +usr/bin/pango*
604 +usr/bin/python
605 +usr/bin/python?.?
606 +usr/bin/rdate
607 +usr/bin/readlink
608 +usr/bin/reduce-font
609 +usr/bin/report-*
610 +usr/bin/reporter-*
611 +usr/bin/setxkbmap
612 +usr/bin/sg_format
613 +usr/bin/sg_inq
614 +usr/bin/sg_map
615 +usr/bin/sg_readcap
616 +usr/bin/sg_scan
617 +usr/bin/sginfo
618 +usr/bin/sha1sum
619 +usr/bin/sha256sum
620 +usr/bin/split
621 +usr/bin/ssh-keygen
622 +usr/bin/syslinux
623 +usr/bin/tac
624 +usr/bin/tail
625 +usr/bin/tee
626 +usr/bin/telnet
627 +usr/bin/tilo
628 +usr/bin/top
629 +usr/bin/tty
630 +usr/bin/wc
631 +usr/bin/udev*
632 +usr/bin/uniq
633 +usr/bin/vncconfig
634 +usr/bin/vncpasswd
635 +usr/bin/wget
636 +usr/bin/which
637 +usr/bin/xkbcomp
638 +usr/bin/xrandr
639 +usr/bin/zenity
640 +usr/lib/anaconda
641 +usr/lib/anaconda-runtime
642 +usr/lib/anaconda/installclasses
643 +usr/lib/anaconda/iw
644 +usr/lib/anaconda/textw
645 +usr/lib/anaconda/booty
646 +usr/lib/anaconda/storage
647 +usr/lib/anaconda/storage/devicelibs
648 +usr/lib/anaconda/storage/formats
649 +usr/lib/kernel-wrapper
650 +usr/lib/locale
651 +usr/lib/python?.?
652 +usr/lib/python?.?/site-packages/epdb/*.py
653 +usr/lib/rpm/macros
654 +usr/lib/rpm/rpmpopt
655 +usr/lib/rpm/rpmrc
656 +usr/share/syslinux
657 +usr/lib/yaboot
658 +usr/lib/yum-plugins/*.py*
659 +usr/libexec/convertdb1
660 +usr/libexec/fcoe/fcoe_edd.sh
661 +usr/libexec/hal*
662 +usr/libexec/nm-crash-logger
663 +usr/libexec/nm-dhcp-client.action
664 +usr/libexec/nm-dispatcher.action
665 +usr/libexec/polkit*
666 +usr/libexec/virt-what-cpuid-helper
667 +usr/sbin/NetworkManager
668 +usr/sbin/addRamDisk
669 +usr/sbin/anaconda
670 +usr/sbin/chroot
671 +usr/sbin/dcbtool
672 +usr/sbin/ddcprobe
673 +usr/sbin/dmidecode
674 +usr/sbin/efibootmgr
675 +usr/sbin/fcoemon
676 +usr/sbin/fbset
677 +usr/sbin/fipvlan
678 +usr/sbin/genhomedircon
679 +usr/sbin/gptsync
680 +usr/sbin/hald
681 +usr/sbin/lldpad
682 +usr/sbin/lvm
683 +usr/sbin/ntpdate
684 +usr/sbin/pdata_tools
685 +usr/sbin/prelink
686 +usr/sbin/semodule
687 +usr/sbin/showpart
688 +usr/sbin/smartctl
689 +usr/sbin/sshd
690 +usr/sbin/.sshd.hmac
691 +usr/sbin/thin_*
692 +usr/sbin/virt-what
693 +usr/sbin/wpa_passphrase
694 +usr/sbin/wpa_supplicant
695 +usr/sbin/wrapper
696 +usr/sbin/xfs_admin
697 +usr/sbin/xfs_check
698 +usr/sbin/xfs_copy
699 +usr/sbin/xfs_db
700 +usr/share/polkit-1/actions/*
701 +usr/share/X11/XKeysymDB
702 +usr/share/X11/fonts/TTF/GohaTibebZemen.ttf
703 +usr/share/X11/fonts/misc/6x13*
704 +usr/share/X11/fonts/misc/cursor*
705 +usr/share/X11/fonts/misc/fonts*
706 +usr/share/X11/fonts/misc/olcursor*
707 +usr/share/X11/locale
708 +usr/share/X11/rgb*
709 +usr/share/X11/xkb
710 +usr/share/anaconda
711 +usr/share/anaconda/anaconda.conf
712 +usr/share/cracklib
713 +usr/share/dbus-1
714 +usr/share/fontconfig
715 +usr/share/fonts/lohit*/*
716 +usr/share/fonts/cjkuni*/uming*.ttc
717 +usr/share/fonts/dejavu/DejaVuSans-Bold.ttf
718 +usr/share/fonts/dejavu/DejaVuSans.ttf
719 +usr/share/fonts/dejavu/DejaVuSansMono.ttf
720 +usr/share/fonts/kacst/KacstFarsi.ttf
721 +usr/share/fonts/kacst/KacstQura.ttf
722 +usr/share/fonts/madan/Madan.ttf
723 +usr/share/fonts/un-core/UnDotum.ttf
724 +usr/share/fonts/*/VL-Gothic-Regular.ttf
725 +usr/share/fonts/smc/Meera*.ttf
726 +usr/share/hal
727 +usr/share/hwdata/MonitorsDB
728 +usr/share/hwdata/pci.ids
729 +usr/share/hwdata/usb.ids
730 +usr/share/hwdata/videoaliases
731 +usr/share/hwdata/videodrivers
732 +usr/share/icons/hicolor/*/apps/nm-*
733 +usr/share/icons/hicolor/index.theme
734 +usr/share/locale/*/LC_MESSAGES/anaconda.mo
735 +usr/share/locale/*/LC_MESSAGES/cracklib.mo
736 +usr/share/locale/*/LC_MESSAGES/gtk20.mo
737 +usr/share/locale/*/LC_MESSAGES/libc.mo
738 +usr/share/locale/*/LC_MESSAGES/libreport.mo
739 +usr/share/locale/*/LC_MESSAGES/nm-applet.mo
740 +usr/share/locale/*/LC_MESSAGES/parted.mo
741 +usr/share/locale/*/LC_MESSAGES/redhat-dist.mo
742 +usr/share/locale/*/LC_MESSAGES/system-config-date.mo
743 +usr/share/locale/*/LC_MESSAGES/system-config-keyboard.mo
744 +usr/share/locale/*/LC_MESSAGES/zenity.mo
745 +usr/share/locale/locale.alias
746 +usr/share/mime/mime.cache
747 +usr/share/nm-applet/*
748 +usr/share/pixmaps/comps/*.png
749 +usr/share/pixmaps/gnome-default-dlg.png
750 +usr/share/pixmaps/gnome-error.png
751 +usr/share/pixmaps/gnome-info.png
752 +usr/share/pixmaps/gnome-question.png
753 +usr/share/pixmaps/gnome-warning.png
754 +usr/share/pixmaps/no.xpm
755 +usr/share/pixmaps/yes.xpm
756 +usr/share/ppc64-utils
757 +usr/share/python-meh/*
758 +usr/share/rhsm
759 +usr/share/system-config-date
760 +usr/share/system-config-date/zonetab.py*
761 +usr/share/system-config-keyboard
762 +usr/share/terminfo/l/linux
763 +usr/share/terminfo/v/vt100
764 +usr/share/terminfo/v/vt100-nav
765 +usr/share/terminfo/v/vt320
766 +usr/share/terminfo/v/vt320-w
767 +usr/share/terminfo/x/xterm
768 +usr/share/themes/Atlanta/metacity-1
769 +usr/share/xorg/extramodes
770 +usr/share/xorg/vesamodes
771 +usr/share/zenity
772 +usr/share/zoneinfo
773 +var/cache/hald
774 +var/lib/polkit-1
775 +var/lib/dbus
776 +var/lib/hal
777 +var/lib/lldpad
778 +var/log/rhsm
779 +var/report
780 +var/run/dbus
781 +EOF
782 +
783 +if [ $ARCH = s390 -o $ARCH = s390x ]; then
784 + cat >> $KEEPFILE <<EOF
785 +bin/basename
786 +bin/cat
787 +bin/chmod
788 +bin/chown
789 +bin/cp
790 +bin/cut
791 +bin/date
792 +bin/dmesg
793 +bin/echo
794 +bin/find
795 +bin/gzip
796 +bin/ls
797 +bin/mknod
798 +bin/ping6
799 +bin/ps
800 +bin/sort
801 +bin/tar
802 +bin/vi
803 +lib/modules/ibm
804 +lib/s390-tools/lsznet.raw
805 +lib/s390-tools/znetcontrolunits
806 +lib/security
807 +sbin/*_cio_free
808 +sbin/arp
809 +sbin/cio_ignore
810 +sbin/cmsfscat
811 +sbin/cmsfslst
812 +sbin/dasdfmt
813 +sbin/dasdinfo
814 +sbin/dasdview
815 +sbin/fdasd
816 +sbin/lschp
817 +sbin/lscss
818 +sbin/lsdasd
819 +sbin/lsqeth
820 +sbin/lszfcp
821 +sbin/portmap
822 +sbin/qetharp
823 +sbin/qetharp-2.6
824 +sbin/qethconf
825 +sbin/sysctl
826 +usr/bin/dirname
827 +usr/bin/expr
828 +usr/bin/head
829 +usr/bin/ldd
830 +usr/bin/less
831 +usr/bin/lsscsi
832 +usr/bin/nslookup
833 +usr/bin/printf
834 +usr/bin/seq
835 +usr/bin/scp
836 +usr/bin/strace
837 +usr/bin/tr
838 +usr/bin/wc
839 +usr/bin/xauth
840 +usr/sbin/chreipl
841 +usr/sbin/glibc_post_upgrade
842 +usr/sbin/lsreipl
843 +usr/share/terminfo/a/ansi
844 +usr/share/terminfo/d/dumb
845 +usr/share/terminfo/k/kterm
846 +usr/share/terminfo/s/screen
847 +usr/share/terminfo/v/vt102
848 +usr/share/terminfo/v/vt320
849 +usr/share/terminfo/v/vt320-w
850 +usr/share/terminfo/x/xterm
851 +usr/share/terminfo/x/xterm-color
852 +EOF
853 +fi
854 +
855 +# more dogtail stuff...
856 +cat >> $KEEPFILE <<EOF
857 +usr/$LIBDIR/gtk-2.0/modules/libatk-bridge.so
858 +usr/$LIBDIR/gtk-2.0/modules/libgail.so
859 +usr/libexec/bonobo-activation-server
860 +usr/libexec/at-spi-registryd
861 +usr/$LIBDIR/bonobo/servers
862 +usr/libexec/gconfd-2
863 +usr/$LIBDIR/GConf/2/libgconfbackend-xml.so
864 +usr/$LIBDIR/python?.?/site-packages/gtk-2.0/atk.so
865 +usr/$LIBDIR/python?.?/site-packages/gtk-2.0/gconf.so
866 +usr/$LIBDIR/python?.?/site-packages/atspi.so
867 +usr/lib/python?.?/site-packages/dogtail/*.py
868 +EOF
869 +
870 +#
871 +# KEEPFILERESCUE is all files to keep from the packages in PACKAGESRESCUE
872 +#
873 +# This defines the files in addition to KEEPFILE that make up
874 +# the install images for NFS and CD/DVD based rescue mode installs. This
875 +# image is not loaded into memory so it can be considerably larger.
876 +#
877 +# NOTE: hd, ftp, and http rescue mode use and image based on KEEPFILE since
878 +# it has to be much smaller due to memory usage.
879 +#
880 +KEEPFILERESCUE=${TMPDIR:-/tmp}/keepfilerescue.$$
881 +cat > $KEEPFILERESCUE <<EOF
882 +bin/find
883 +bin/gunzip
884 +bin/gzip
885 +bin/mt
886 +bin/ping
887 +bin/sync
888 +bin/tar
889 +bin/zcat
890 +etc/joe
891 +sbin/arp
892 +sbin/blkid
893 +sbin/depmod
894 +sbin/dmraid
895 +sbin/dmsetup
896 +sbin/dump
897 +sbin/ifconfig
898 +sbin/insmod
899 +sbin/lsmod
900 +sbin/modinfo
901 +sbin/modprobe
902 +sbin/depmod
903 +sbin/netstat
904 +sbin/restore
905 +sbin/rrestore
906 +sbin/route
907 +sbin/mount.cifs
908 +sbin/umount.cifs
909 +usr/bin/bunzip2
910 +usr/bin/bzcat
911 +usr/bin/bzip2
912 +usr/bin/emacs
913 +usr/bin/find
914 +usr/bin/ftp
915 +usr/bin/jmacs
916 +usr/bin/joe
917 +usr/bin/jpico
918 +usr/bin/less
919 +usr/bin/mattrib
920 +usr/bin/mbadblocks
921 +usr/bin/mcd
922 +usr/bin/mcopy
923 +usr/bin/mdel
924 +usr/bin/mdeltree
925 +usr/bin/mdir
926 +usr/bin/mdu
927 +usr/bin/mformat
928 +usr/bin/minfo
929 +usr/bin/mlabel
930 +usr/bin/mmd
931 +usr/bin/mmount
932 +usr/bin/mmove
933 +usr/bin/mpartition
934 +usr/bin/mrd
935 +usr/bin/mread
936 +usr/bin/mren
937 +usr/bin/mshowfat
938 +usr/bin/mtools
939 +usr/bin/mtype
940 +usr/bin/mzip
941 +usr/bin/open
942 +usr/bin/rcp
943 +usr/bin/rlogin
944 +usr/bin/rsh
945 +usr/bin/rsync
946 +usr/bin/scp
947 +usr/bin/sftp
948 +usr/bin/shred
949 +usr/bin/ssh
950 +usr/bin/.ssh.hmac
951 +usr/bin/termidx
952 +usr/bin/volume_key
953 +usr/bin/xargs
954 +usr/bin/ntfscat
955 +usr/bin/ntfscluster
956 +usr/bin/ntfscmp
957 +usr/bin/ntfsdecrypt
958 +usr/bin/ntfsdump_logfile
959 +usr/bin/ntfsfix
960 +usr/bin/ntfsinfo
961 +usr/bin/ntfsls
962 +usr/bin/ntfsmftalloc
963 +usr/bin/ntfsmove
964 +usr/bin/ntfstruncate
965 +usr/bin/ntfswipe
966 +usr/bin/firstaidkit
967 +usr/sbin/mkntfs
968 +usr/sbin/ntfsclone
969 +usr/sbin/ntfscp
970 +usr/sbin/ntfslabel
971 +usr/sbin/ntfsresize
972 +usr/sbin/ntfsundelete
973 +usr/sbin/mtr
974 +usr/sbin/smartctl
975 +usr/sbin/traceroute
976 +usr/$LIBDIR/firstaidkit/plugins/
977 +usr/lib/python?.?/site-packages/pyfirstaidkit/
978 +usr/bin/whiptail
979 +usr/bin/firstaidkit-qs
980 +EOF
981 +
982 +# add all lvm symlinks to keepfile
983 +for cmd in `rpm -ql lvm2 | grep /sbin/`; do
984 + echo ${cmd:1};
985 + echo "usr"$cmd;
986 +done >> $KEEPFILERESCUE
987 +
988 +if [[ $ARCH =~ i[356]86 || $ARCH == "x86_64" ]]; then
989 + cat >> $KEEPFILERESCUE <<-EOF
990 +sbin/grub
991 +usr/bin/gpart
992 +usr/share/grub
993 +EOF
994 +fi
995 +
996 +echo "Assembling package list..."
997 +RPMS="$PACKAGES $PACKAGESRESCUE"
998 +[ -n "$DEBUG" ] && echo "RPMS are $RPMS"
999 +
1000 +rm -rf $DEST; mkdir -p $DEST/usr/sbin $DEST/var/lib $DEST/boot
1001 +ln -s /tmp $DEST/var/lib/xkb
1002 +
1003 +#
1004 +# concat KEEPFILE and KEEPFILERESCUE lists
1005 +#
1006 +cat $KEEPFILERESCUE >> $KEEPFILE
1007 +
1008 +echo `date` "Expanding packages..."
1009 +YUMDIR=${TMPDIR:-/tmp}/yumdir.$$
1010 +mkdir -p $YUMDIR/var/log
1011 +mkdir -p $YUMDIR/var/lib/yum
1012 +
1013 +expandPackageSet $yumconf $YUMDIR "$RPMS" $DEST $KEEPFILE
1014 +echo `date` "Done Expanding packages..."
1015 +
1016 +# Dogtail will check this
1017 +echo "Creating customized GConf2 settings for root"
1018 +mkdir -p $DEST/.gconf/desktop/gnome/interface
1019 +touch $DEST/.gconf/desktop/%gconf.xml
1020 +touch $DEST/.gconf/desktop/gnome/%gconf.xml
1021 +cat > $DEST/.gconf/desktop/gnome/interface/%gconf.xml <<EOF
1022 +<?xml version="1.0"?>
1023 +<gconf>
1024 + <entry name="accessibility" mtime="1176200664" type="bool" value="true">
1025 + </entry>
1026 +</gconf>
1027 +EOF
1028 +
1029 +# anaconda needs to change a couple of the default gconf entries
1030 +GCONF_RULES_FILE=$DEST/etc/gconf/gconf.xml.defaults/anaconda.rules
1031 +cat > $GCONF_RULES_FILE <<EOF
1032 +<?xml version="1.0"?>
1033 +<gconfentryfile>
1034 +
1035 + <entrylist base="/apps">
1036 + <entry>
1037 + <key>metacity/general/button_layout</key>
1038 + <schema_key>/schemas/apps/metacity/general/button_layout</schema_key>
1039 + <value>
1040 + <string>:</string>
1041 + </value>
1042 + </entry>
1043 + <entry>
1044 + <key>metacity/general/action_right_click_titlebar</key>
1045 + <schema_key>/schemas/apps/metacity/general/action_right_click_titlebar</schema_key>
1046 + <value>
1047 + <string>none</string>
1048 + </value>
1049 + </entry>
1050 + <entry>
1051 + <key>metacity/window_keybindings/close</key>
1052 + <schema_key>/schemas/apps/metacity/window_keybindings/close</schema_key>
1053 + <value>
1054 + <string>disabled</string>
1055 + </value>
1056 + </entry>
1057 + <entry>
1058 + <key>metacity/global_keybindings/run_command_window_screenshot</key>
1059 + <schema_key>/metacity/global_keybindings/run_command_window_screenshot</schema_key>
1060 + <value>
1061 + <string>disabled</string>
1062 + </value>
1063 + </entry>
1064 + <entry>
1065 + <key>metacity/global_keybindings/run_command_screenshot</key>
1066 + <schema_key>/metacity/global_keybindings/run_command_screenshot</schema_key>
1067 + <value>
1068 + <string>disabled</string>
1069 + </value>
1070 + </entry>
1071 + </entrylist>
1072 +
1073 +</gconfentryfile>
1074 +EOF
1075 +gconftool-2 --direct --config-source="xml:readwrite:$DEST/etc/gconf/gconf.xml.defaults" --load $GCONF_RULES_FILE
1076 +
1077 +rm -rf $YUMDIR
1078 +
1079 +chown -R root:root $DEST
1080 +chmod -R a+rX-w $DEST
1081 +
1082 +# Remove locales unused during the install
1083 +cat $DEST/usr/lib/anaconda/lang-table* | awk '
1084 +{ gsub("-", "", $4);
1085 + print $4;
1086 + print gensub(/\..*$/,"","",$4);
1087 + print gensub(/_.*$/,"","",$4);
1088 + if (split ($4, a, ".") > 1) {
1089 + print gensub(/\..*$/,tolower("." a[2]),"",$4);
1090 + };
1091 + print $2;
1092 +}
1093 +' | sed -e 's/latn/Latn/g' | LC_ALL=C sort -u > $DEST/locales
1094 +for p in lib share; do (
1095 + cd $DEST/usr/$p/locale && {
1096 + ls | grep -v locale.alias | grep -v locale-archive | LC_ALL=C sort > $DEST/locales.list
1097 + LC_ALL=C comm -13 $DEST/locales $DEST/locales.list | xargs rm -rf
1098 + }
1099 +); done
1100 +
1101 +rm -f $DEST/locales $DEST/locales.list
1102 +
1103 +# fixup joe links
1104 +if [ -d "$DESTDIR"/etc/joe ]; then
1105 + ln -fs jpicorc $DEST/etc/joe/picorc
1106 + ln -fs jpicorc $DEST/etc/joe/jnanorc
1107 + ln -fs jpicorc $DEST/etc/joe/nanorc
1108 + ln -fs jmacsrc $DEST/etc/joe/emacsrc
1109 + ln -fs jmacs $DEST/usr/bin/emacs
1110 + ln -fs jpico $DEST/usr/bin/pico
1111 + ln -fs jpico $DEST/usr/bin/nano
1112 +fi
1113 +
1114 +# fix up some links for man page related stuff
1115 +for file in nroff groff iconv geqn gtbl gpic grefer ; do
1116 + ln -fs /mnt/sysimage/usr/bin/$file $DEST/usr/bin/$file
1117 +done
1118 +
1119 +# create selinux config
1120 +if [ -e $DEST/etc/selinux/targeted ]; then
1121 + cat > $DEST/etc/selinux/config <<EOF
1122 +SELINUX=permissive
1123 +SELINUXTYPE=targeted
1124 +EOF
1125 +fi
1126 +
1127 +echo "Creating libuser.conf"
1128 +cat > $DEST/etc/libuser.conf <<EOF
1129 +[defaults]
1130 +skeleton = /mnt/sysimage/etc/skel
1131 +mailspooldir = /mnt/sysimage/var/mail
1132 +crypt_style = md5
1133 +modules = files shadow
1134 +create_modules = files shadow
1135 +[files]
1136 +directory = /mnt/sysimage/etc
1137 +[shadow]
1138 +directory = /mnt/sysimage/etc
1139 +EOF
1140 +
1141 +echo "Creating /etc/skel"
1142 +# libuser needs this when it creates sshpw users
1143 +mkdir -p $DEST/etc/skel
1144 +
1145 +echo "Creating empty /etc/gshadow"
1146 +# libuser needs this when it creates sshpw users
1147 +touch $DEST/etc/gshadow
1148 +
1149 +sed -i 's|\(installforallkernels\) = 0|\1 = 1|' $DEST/etc/yum/pluginconf.d/fedorakmod.conf
1150 +
1151 +#
1152 +# Manual pages in rescue: We dont have man pages in the image, so we point everything (The pages
1153 +# and the man scripts to the /mnt/sysimage. We want the man command to depend only on the
1154 +# man.conf file, so we don't use the $MANPATH env variable. The executables stay unchanged as
1155 +# they will be soft links to /mnt/sysimage.
1156 +#
1157 +echo "Fixing up /etc/man.config to point into /mnt/sysimage"
1158 +
1159 +#
1160 +# Lets avoid the lines with MANPATH_MAP for now
1161 +#
1162 +sed -i "s,^MANPATH[^_MAP][ \t]*,&/mnt/sysimage," $DEST/etc/man.config
1163 +
1164 +#
1165 +# Lets change the lines with MANPATH_MAP. Don't know how much of a difference this will make.
1166 +#
1167 +sed -i "s,^MANPATH_MAP[ \t]*[a-zA-Z0-9/]*[ \t]*,&/mnt/sysimage," $DEST/etc/man.config
1168 +
1169 +echo "Scrubbing tree..." "$DEST"
1170 +mkdir -p $DEST/lib
1171 +mkdir -p $DEST/firmware
1172 +ln -snf /modules $DEST/lib/modules
1173 +ln -snf /firmware $DEST/lib/firmware
1174 +cp $DEST/usr/lib/anaconda/list-harddrives-stub $DEST/usr/bin/list-harddrives
1175 +cp $DEST/usr/lib/anaconda/list-harddrives-test $DEST/usr/bin/list-harddrives-test
1176 +cp $DEST/usr/lib/anaconda/loadkeys-stub $DEST/usr/bin/loadkeys
1177 +cp $DEST/usr/lib/anaconda/loadkeys-test $DEST/usr/bin/loadkeys-test
1178 +cp $DEST/usr/lib/anaconda/mknod-stub $DEST/usr/bin/mknod
1179 +cp $DEST/usr/lib/anaconda/mknod-test $DEST/usr/bin/mknod-test
1180 +cp $DEST/usr/lib/anaconda/syslogd-stub $DEST/usr/bin/syslogd
1181 +mv $DEST/usr/sbin/anaconda $DEST/usr/bin/anaconda
1182 +mv $DEST/usr/lib/anaconda-runtime/lib* $DEST/usr/$LIBDIR 2>/dev/null
1183 +mv $DEST/usr/lib/anaconda/sitecustomize.py $DEST/usr/$LIBDIR/python?.?/site-packages
1184 +
1185 +mv $DEST/etc/yum.repos.d $DEST/etc/anaconda.repos.d
1186 +
1187 +rm -f $DEST/usr/$LIBDIR/libunicode-lite*
1188 +
1189 +find $DEST -type d | xargs chmod 755
1190 +
1191 +if [ -f $DEST/bin/bash ]; then
1192 + rm -f $DEST/bin/ash
1193 + ln -s bash $DEST/bin/sh
1194 +fi
1195 +
1196 +if [ -f $DEST/bin/gawk ]; then
1197 + ln -sf $DEST/bin/gawk awk
1198 +fi
1199 +
1200 +[ -d $DEST/bin ] || die "ERROR: directory missing: $DEST/bin"
1201 +[ -d $DEST/sbin ] || die "ERROR: directory missing: $DEST/sbin"
1202 +(cd $DEST/bin; find) | (cd $DEST/bin; /bin/cpio --quiet -pdmu $DEST/usr/bin)
1203 +(cd $DEST/sbin; find) | (cd $DEST/sbin; /bin/cpio --quiet -pdmu $DEST/usr/sbin)
1204 +rm -rf $DEST/bin
1205 +rm -rf $DEST/sbin
1206 +
1207 +# Fix relative links like /usr/bin/udevinfo -> ../../sbin/udevadm
1208 +for brokenlink in $(find $DEST/usr/{bin,sbin} -follow -lname '*') ; do
1209 + target="$(readlink $brokenlink)"
1210 + for pathbit in bin sbin; do
1211 + # if it starts with "../../sbin/", remove that
1212 + newtarget="${target##../../$pathbit/}"
1213 + # if we removed something, replace it with the proper path
1214 + if [ "$newtarget" != "$target" ]; then
1215 + # make it ../sbin/ instead
1216 + ln -sf "../$pathbit/$newtarget" "$brokenlink"
1217 + fi
1218 + done
1219 +done
1220 +
1221 +# copy bootloader files for sparc
1222 +if [ $ARCH = sparc -o $ARCH = sparcv9 -o $ARCH = sparc64 ]; then
1223 + mkdir -p $DEST/usr/lib/anaconda-runtime/boot
1224 + [ -d $DEST/boot ] || die "ERROR: directory missing: $DEST/boot"
1225 + (cd $DEST/boot; find -name "*.b") | (cd $DEST/boot; /bin/cpio --quiet -pdmu $DEST/usr/lib/anaconda-runtime/boot)
1226 +fi
1227 +
1228 +# copy bootloader file for ppc
1229 +if [ $ARCH = ppc -o $ARCH = ppc64 ]; then
1230 + mkdir -p $DEST/usr/lib/anaconda-runtime/boot
1231 + cp -af $DEST/boot/efika.forth $DEST/usr/lib/anaconda-runtime/boot
1232 +fi
1233 +
1234 +# copy bootloader file for alpha
1235 +if [ $ARCH = alpha ]; then
1236 + mkdir -p $DEST/usr/lib/anaconda-runtime/boot
1237 + cp -af $DEST/boot/bootlx $DEST/usr/lib/anaconda-runtime/boot
1238 +fi
1239 +
1240 +# copy bootloader files for ia64
1241 +if [ $ARCH = ia64 ]; then
1242 + mkdir -p $DEST/usr/lib/anaconda-runtime/boot
1243 + cp -af $DEST/boot/efi/EFI/redhat//* $DEST/usr/lib/anaconda-runtime/boot
1244 +fi
1245 +
1246 +# copy bootloader files for i386/x86_64
1247 +if [[ $ARCH =~ i[356]86 || $ARCH == "x86_64" ]]; then
1248 + mkdir -p $DEST/usr/lib/anaconda-runtime/boot
1249 + cp -af $DEST/boot/memtest* $DEST/usr/lib/anaconda-runtime/boot
1250 +fi
1251 +
1252 +rm -rf $DEST/boot $DEST/home $DEST/root $DEST/tmp
1253 +
1254 +find $DEST -name "*.a" | grep -v kernel-wrapper/wrapper.a | xargs rm -rf
1255 +find $DEST -name "lib*.la" |grep -v "usr/$LIBDIR/gtk-2.0" | xargs rm -rf
1256 +
1257 +# nuke some python stuff we don't need
1258 +for d in idle distutils bsddb lib-old hotshot doctest.py pydoc.py site-packages/japanese site-packages/japanese.pth ; do
1259 + rm -rf $DEST/$d
1260 +done
1261 +
1262 +$DEST/usr/lib/anaconda-runtime/scrubtree $DEST
1263 +
1264 +echo "Creating debug dir"
1265 +mkdir -p $DEST/usr/lib/debug
1266 +mkdir -p $DEST/usr/src/debug
1267 +
1268 +find $DEST -name "*.py" | while read fn; do
1269 + rm -f ${fn}o
1270 + rm -f ${fn}c
1271 + ln -sf /dev/null ${fn}c
1272 +done
1273 +
1274 +# some python stuff we don't need for install image
1275 +rm -rf $DEST/usr/$LIBDIR/python?.?/site-packages/distutils/
1276 +rm -rf $DEST/usr/$LIBDIR/python?.?/site-packages/lib-dynload/japanese
1277 +rm -rf $DEST/usr/$LIBDIR/python?.?/site-packages/encodings/
1278 +rm -rf $DEST/usr/$LIBDIR/python?.?/site-packages/compiler/
1279 +rm -rf $DEST/usr/$LIBDIR/python?.?/site-packages/email/test/
1280 +rm -rf $DEST/usr/$LIBDIR/python?.?/site-packages/curses/
1281 +rm -rf $DEST/usr/$LIBDIR/python?.?/site-packages/pydoc.py

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed