diff --git a/etc/lorax/config.noarch b/etc/lorax/config.noarch index aa95e3bf..f57db2b2 100644 --- a/etc/lorax/config.noarch +++ b/etc/lorax/config.noarch @@ -9,7 +9,7 @@ packages: smartmontools iscsi-initiator-utils samba-client mtr gtk-nodoka-engine ftp openssh-clients gtk+ gdk-pixbuf madan-fonts lklug-fonts xorg-x11-fonts-ethiopic un-core-fonts-dotum man yum-fedorakmod - /etc/gtk-2.0/gtkrc + /etc/gtk-2.0/gtkrc NetworkManager-gnome wget modules: sunrpc lockd floppy cramfs loop edd pcspkr squashfs diff --git a/etc/lorax/config.ppc b/etc/lorax/config.ppc new file mode 100644 index 00000000..9cb13f37 --- /dev/null +++ b/etc/lorax/config.ppc @@ -0,0 +1,7 @@ +[lorax] + +packages: + pcmciautils pdisk yaboot hfsutils fbset ppc64-utils + +initrd_template=templates/initrd/initrd.i386 +scrubs_template=templates/scrubs/scrubs.i386 diff --git a/etc/lorax/config.ppc64 b/etc/lorax/config.ppc64 new file mode 100644 index 00000000..df5a2d09 --- /dev/null +++ b/etc/lorax/config.ppc64 @@ -0,0 +1,10 @@ +[lorax] + +packages: + pcmciautils pdisk yaboot hfsutils fbset ppc64-utils + +modules: + spufs viocd gpio_mdio + +initrd_template=templates/initrd/initrd.i386 +scrubs_template=templates/scrubs/scrubs.i386 diff --git a/etc/lorax/templates/initrd/includes/initrd b/etc/lorax/templates/initrd/includes/initrd index b2fc47b9..b4571f6b 100644 --- a/etc/lorax/templates/initrd/includes/initrd +++ b/etc/lorax/templates/initrd/includes/initrd @@ -31,8 +31,7 @@ makedirs ${initrd}/etc/modprobe.d makedirs ${initrd}/etc/NetworkManager/dispatcher.d makedirs ${initrd}/${libdir}/dbus-1 makedirs ${initrd}/etc/sysconfig/network-scripts -makedirs ${initrd}/usr/share/PolicyKit/policy -makedirs ${initrd}/etc/PolicyKit +makedirs ${initrd}/usr/share/polkit-1/actions makedirs ${initrd}/var/lib/misc makedirs ${initrd}/etc/hal/fdi makedirs ${initrd}/usr/share/hal/fdi @@ -98,7 +97,6 @@ symlink name ${initrd}/etc/init.d target /etc/rc.d/init.d ## dhcp and dhcpv6 client daemons and support programs copy ${instroot} sbin/dhclient to ${initrd} sbin copy ${instroot} sbin/dhclient-script to ${initrd} sbin -copy ${instroot} sbin/dhcp6c to ${initrd} sbin copy ${instroot} sbin/arping to ${initrd} sbin copy ${instroot} sbin/ifconfig to ${initrd} sbin copy ${instroot} sbin/ip to ${initrd} sbin @@ -123,15 +121,13 @@ copy ${instroot} etc/hal/fdi/* to ${initrd} etc/hal/fdi copy ${instroot} etc/dbus-1/system.d/hal.conf to ${initrd} etc/dbus-1/system.d ## policykit -copy ${instroot} etc/PolicyKit/PolicyKit.conf to ${initrd} etc/PolicyKit +copy ${instroot} etc/polkit-1 to ${initrd} etc copy ${instroot} \ - usr/share/dbus-1/system-services/org.freedesktop.PolicyKit.service to \ + usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service to \ ${initrd} usr/share/dbus-1/system-services -copy ${instroot} usr/share/PolicyKit/policy/org.freedesktop.policykit.policy \ - to ${initrd} usr/share/PolicyKit/policy - -copy ${instroot} var/lib/misc/PolicyKit.reload to ${initrd} var/lib/misc +copy ${instroot} usr/share/polkit-1/actions/org.freedesktop.policykit.policy \ + to ${initrd} usr/share/polkit-1/actions ## dbus copy ${instroot} bin/dbus-uuidgen to ${initrd} sbin @@ -158,17 +154,16 @@ copy ${instroot} \ ## networkmanager copy ${instroot} usr/sbin/NetworkManager to ${initrd} usr/sbin -copy ${instroot} usr/sbin/nm-system-settings to ${initrd} usr/sbin copy ${instroot} etc/dbus-1/system.d/nm-*.conf to ${initrd} etc/dbus-1/system.d copy ${instroot} etc/dbus-1/system.d/NetworkManager.conf to \ ${initrd} etc/dbus-1/system.d copy ${instroot} etc/NetworkManager/nm-system-settings.conf to \ ${initrd} etc/NetworkManager copy ${instroot} \ - usr/${libdir}/NetworkManager/libnm-settings-plugin-ifcfg-fedora.so to \ + usr/${libdir}/NetworkManager/libnm-settings-plugin-ifcfg-rh.so to \ ${initrd} usr/${libdir}/NetworkManager copy ${instroot} usr/libexec/nm-* to ${initrd} usr/libexec -copy ${instroot} usr/share/dbus-1/system-services/org.freedesktop.NetworkManagerSystemSettings.service to ${initrd} usr/share/dbus-1/system-services +##copy ${instroot} usr/share/dbus-1/system-services/org.freedesktop.NetworkManagerSystemSettings.service to ${initrd} usr/share/dbus-1/system-services copy ${instroot} usr/share/dbus-1/system-services/org.freedesktop.nm_dispatcher.service to ${initrd} usr/share/dbus-1/system-services ## modprobe @@ -210,7 +205,7 @@ copy ${instroot} bin/fgrep to ${initrd} sbin copy ${instroot} bin/grep to ${initrd} sbin copy ${instroot} bin/kill to ${initrd} sbin copy ${instroot} bin/ln to ${initrd} sbin -copy ${instroot} bin/readlink to ${initrd} sbin +copy ${instroot} usr/bin/readlink to ${initrd} sbin copy ${instroot} bin/rm to ${initrd} sbin copy ${instroot} bin/rmdir to ${initrd} sbin copy ${instroot} bin/sed to ${initrd} sbin @@ -228,15 +223,24 @@ copy ${instroot} usr/lib/anaconda-runtime/loader/loader.tr to ${initrd} etc chmod ${initrd}/etc/loader.tr mode 0644 ## indirect dependencies -##copy ${instroot} ${libdir}/ld-linux.so.2 to ${initrd} ${libdir} +copy ${instroot} ${libdir}/ld-linux.so.2 to ${initrd} ${libdir} copy ${instroot} ${libdir}/libcom_err.so.2 to ${initrd} ${libdir} -copy ${instroot} ${libdir}/libdbus-glib-1.so.2 to ${initrd} ${libdir} -copy ${instroot} ${libdir}/libfreebl3.so to ${initrd} ${libdir} +##copy ${instroot} ${libdir}/libdbus-glib-1.so.2 to ${initrd} ${libdir} +##copy ${instroot} ${libdir}/libfreebl3.so to ${initrd} ${libdir} copy ${instroot} ${libdir}/libgcc_s.so.1 to ${initrd} ${libdir} copy ${instroot} ${libdir}/libnss_dns.so.2 to ${initrd} ${libdir} copy ${instroot} ${libdir}/libnss_files.so.2 to ${initrd} ${libdir} -copy ${instroot} ${libdir}/libsoftokn3.so to ${initrd} ${libdir} +##copy ${instroot} ${libdir}/libsoftokn3.so to ${initrd} ${libdir} copy ${instroot} usr/${libdir}/libsqlite3.so.0 to ${initrd} usr/${libdir} ## langtable copy ${instroot} usr/lib/anaconda/lang-table to ${initrd} etc + + +## missing files +copy ${instroot} usr/sbin/dmidecode to ${initrd} bin +copy ${instroot} sbin/load_policy to ${initrd} bin +copy ${instroot} sbin/mdadm to ${initrd} bin +copy ${instroot} sbin/mdmon to ${initrd} bin +copy ${instroot} bin/mkdir to ${initrd} bin +copy ${instroot} usr/bin/wget to ${initrd} bin diff --git a/etc/lorax/templates/initrd/initrd.i386 b/etc/lorax/templates/initrd/initrd.i386 index 7e148591..4f2c657a 100644 --- a/etc/lorax/templates/initrd/initrd.i386 +++ b/etc/lorax/templates/initrd/initrd.i386 @@ -7,5 +7,5 @@ symlink name ${initrd}/sbin/halt target init symlink name ${initrd}/sbin/poweroff target init ## screenfont -copy ${instroot} usr/lib/anaconda-runtime/screenfont-${arch}.gz to \ +copy ${instroot} usr/lib/anaconda-runtime/screenfont-${basearch}.gz to \ ${initrd} etc/screenfont.gz diff --git a/etc/lorax/templates/scrubs/scrubs.i386 b/etc/lorax/templates/scrubs/scrubs.i386 index a35c0ee1..53aa6fd7 100644 --- a/etc/lorax/templates/scrubs/scrubs.i386 +++ b/etc/lorax/templates/scrubs/scrubs.i386 @@ -20,8 +20,8 @@ remove ${instroot}/usr/local remove ${instroot}/usr/tmp ## remove modules and firmware directories -remove ${instroot}/lib/modules -remove ${instroot}/lib/firmware +##remove ${instroot}/lib/modules +##remove ${instroot}/lib/firmware ## remove directories from /var remove ${instroot}/var/db @@ -50,7 +50,7 @@ remove ${instroot}/lib/xtables remove ${instroot}/etc/ConsoleKit remove ${instroot}/etc/X11 remove ${instroot}/etc/alternatives -remove ${instroot}/etc/asterisk +##remove ${instroot}/etc/asterisk remove ${instroot}/etc/avahi remove ${instroot}/etc/blkid remove ${instroot}/etc/bonobo* @@ -68,7 +68,7 @@ remove ${instroot}/etc/gcrypt remove ${instroot}/etc/gnome-vfs* remove ${instroot}/etc/gnupg remove ${instroot}/etc/gtk -remove ${instroot}/etc/hotplug +##remove ${instroot}/etc/hotplug remove ${instroot}/etc/init.d remove ${instroot}/etc/iproute2 remove ${instroot}/etc/iscsi diff --git a/src/pylorax/ramdisk.py b/src/pylorax/ramdisk.py index c17b0af3..26355a2a 100644 --- a/src/pylorax/ramdisk.py +++ b/src/pylorax/ramdisk.py @@ -81,6 +81,7 @@ class Ramdisk(object): def process_actions(self): for action in self.actions: + self.output.debug(str(action)) action.execute() def create_modinfo(self, moddir, target): @@ -232,7 +233,8 @@ class Ramdisk(object): utils.scopy(src_root=self.conf.installtree, src_path=path, dst_root=self.conf.ramdisktree, - dst_path=path) + dst_path=path, + ignore_errors=True) # copy additional firmware fw = [ ("ipw2100", "ipw2100*"), diff --git a/src/pylorax/utils.py b/src/pylorax/utils.py index 2b57a093..8468580a 100644 --- a/src/pylorax/utils.py +++ b/src/pylorax/utils.py @@ -40,7 +40,8 @@ def expand_path(path, globs=True): l.extend(expand_path(m.group("prefix") + f + m.group("suffix"), globs=globs)) else: - if globs: + # XXX are there any other chars in globs? + if globs and (path.find("*") != -1 or path.find("?") != -1): l.extend(glob.glob(path)) else: l.append(path)