2009-06-08 14:54:20 +00:00
|
|
|
# initrd template
|
2009-06-04 13:36:56 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
# create required directories
|
|
|
|
makedir @initrd@/modules
|
|
|
|
makedir @initrd@/sbin
|
|
|
|
makedir @initrd@/dev
|
|
|
|
makedir @initrd@/etc
|
|
|
|
makedir @initrd@/etc/udev/rules.d
|
|
|
|
makedir @initrd@/lib/udev/rules.d
|
|
|
|
makedir @initrd@/proc
|
|
|
|
makedir @initrd@/selinux
|
|
|
|
makedir @initrd@/sys
|
|
|
|
makedir @initrd@/etc/terminfo/a
|
|
|
|
makedir @initrd@/etc/terminfo/b
|
|
|
|
makedir @initrd@/etc/terminfo/d
|
|
|
|
makedir @initrd@/etc/terminfo/l
|
|
|
|
makedir @initrd@/etc/terminfo/s
|
|
|
|
makedir @initrd@/etc/terminfo/v
|
|
|
|
makedir @initrd@/etc/terminfo/x
|
|
|
|
makedir @initrd@/tmp
|
|
|
|
makedir @initrd@/usr/libexec
|
|
|
|
makedir @initrd@/usr/@libdir@/NetworkManager
|
|
|
|
makedir @initrd@/usr/share/dbus-1/system-services
|
|
|
|
makedir @initrd@/var/cache/hald
|
|
|
|
makedir @initrd@/var/lib/dbus
|
|
|
|
makedir @initrd@/var/lib/dhclient
|
|
|
|
makedir @initrd@/var/lock/rpm
|
|
|
|
makedir @initrd@/var/run
|
|
|
|
makedir @initrd@/var/run/dbus
|
|
|
|
makedir @initrd@/var/run/hald
|
|
|
|
makedir @initrd@/var/run/NetworkManager
|
|
|
|
makedir @initrd@/etc/dbus-1/system.d
|
|
|
|
makedir @initrd@/etc/modprobe.d
|
|
|
|
makedir @initrd@/etc/NetworkManager/dispatcher.d
|
|
|
|
makedir @initrd@/@libdir@/dbus-1
|
|
|
|
makedir @initrd@/etc/sysconfig/network-scripts
|
|
|
|
makedir @initrd@/usr/share/PolicyKit/policy
|
|
|
|
makedir @initrd@/etc/PolicyKit
|
|
|
|
makedir @initrd@/var/lib/misc
|
|
|
|
makedir @initrd@/etc/hal/fdi
|
|
|
|
makedir @initrd@/usr/share/hal/fdi
|
|
|
|
makedir @initrd@/usr/share/hwdata
|
|
|
|
makedir @initrd@/etc/rc.d/init.d
|
|
|
|
makedir @initrd@/usr/sbin
|
|
|
|
makedir @initrd@/var/run/wpa_supplicant
|
2009-06-08 14:54:20 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
# set the buildarch
|
|
|
|
edit @initrd@/etc/arch text "@buildarch@"
|
2009-06-08 14:54:20 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
# copy etc
|
|
|
|
copy @instroot@/etc/passwd to @initrd@/etc
|
|
|
|
copy @instroot@/etc/group to @initrd@/etc
|
|
|
|
copy @instroot@/etc/nsswitch.conf to @initrd@/etc
|
2009-06-08 14:54:20 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
# copy mount/umount
|
|
|
|
copy @instroot@/bin/mount to @initrd@/sbin/mount
|
|
|
|
copy @instroot@/bin/umount to @initrd@/sbin/umount
|
|
|
|
copy @instroot@/sbin/mount.nfs to @initrd@/sbin/mount.nfs
|
|
|
|
link @initrd@/sbin/umount.nfs to mount.nfs
|
2009-06-08 14:54:20 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
# copy udev
|
|
|
|
copy @instroot@/sbin/udevd to @initrd@/sbin
|
|
|
|
copy @instroot@/sbin/udevadm to @initrd@/sbin
|
|
|
|
link @initrd@/sbin/udevinfo to udevadm
|
|
|
|
link @initrd@/sbin/udevsettle to udevadm
|
2009-06-08 14:54:20 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
# copy bash
|
|
|
|
copy @instroot@/bin/bash to @initrd@/sbin/bash
|
|
|
|
link @initrd@/sbin/sh to bash
|
|
|
|
copy @instroot@/sbin/consoletype to @initrd@/sbin/consoletype
|
|
|
|
copy @instroot@/usr/bin/logger to @initrd@/sbin/logger
|
2009-06-08 14:54:20 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
copy @instroot@/etc/rc.d/init.d/functions to @initrd@/etc/rc.d/init.d
|
|
|
|
copy @instroot@/etc/sysconfig/network-scripts/network-functions* to @initrd@/etc/sysconfig/network-scripts
|
2009-06-08 14:54:20 +00:00
|
|
|
|
2009-06-09 14:10:01 +00:00
|
|
|
link @initrd@/etc/init.d to /etc/rc.d/init.d
|