summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-01-20 22:20:37 +0100
committerDirk von Suchodoletz2006-01-20 22:20:37 +0100
commit7caead1022ee2d8e96ca9be56ddb5be57a86c5c2 (patch)
tree944a2bc456db8c5d28a691ee90b7660349f396aa /initrd/initrd-stuff
parentHeftiges Bugfixing in mkdxsinitrd ... intensiv gecheckt mit SuSE 10.0 - (diff)
downloadcore-7caead1022ee2d8e96ca9be56ddb5be57a86c5c2.tar.gz
core-7caead1022ee2d8e96ca9be56ddb5be57a86c5c2.tar.xz
core-7caead1022ee2d8e96ca9be56ddb5be57a86c5c2.zip
Kleinere Bugs in init und dhcpmkconfig gefixt. boot.ld für initialen
Start via Runlevel angepasst. Weitere Tests durchgeführt mit verschiedenen Kernel Commandline Parametern ... git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@30 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff')
-rwxr-xr-xinitrd/initrd-stuff/bin/dhcpmkconfig4
-rwxr-xr-xinitrd/initrd-stuff/bin/servconfig3
-rw-r--r--initrd/initrd-stuff/etc/functions11
-rwxr-xr-xinitrd/initrd-stuff/init12
4 files changed, 13 insertions, 17 deletions
diff --git a/initrd/initrd-stuff/bin/dhcpmkconfig b/initrd/initrd-stuff/bin/dhcpmkconfig
index d1bc3dfd..b7dd3cbd 100755
--- a/initrd/initrd-stuff/bin/dhcpmkconfig
+++ b/initrd/initrd-stuff/bin/dhcpmkconfig
@@ -33,8 +33,8 @@ case $0 in
;;
*dhclient*)
set | sed -n -e '/^new/p' | sed \
- -e "s,^new_,," -e "s,fixed-address,clientip," \
- -e "s,routers,gateway," -e "s,dhcp-server-identifier,serverip," \
+ -e "s,^new_,," -e "s,fixed_address,clientip," \
+ -e "s,routers,gateway," -e "s,dhcp_server_identifier,serverip," \
-e "s,.*_t[iy][mp]e.*,," -e "s,.*_message_.*,," -e "/^$/d" \
-e "s,language=,country=," -e "s,ip_address,clientip," \
>>/etc/machine-setup
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig
index 5f782bc5..92c4a232 100755
--- a/initrd/initrd-stuff/bin/servconfig
+++ b/initrd/initrd-stuff/bin/servconfig
@@ -104,6 +104,9 @@ case ${DISTRO} in
done
;;
gentoo*)
+ for i in ${D_INITSCRIPTS}; do
+ ln -sf /etc${D_INITDIR}/$i /mnt/etc/${D_INITBOOTD}/$i
+ done
;;
esac
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions
index 9418b637..15237680 100644
--- a/initrd/initrd-stuff/etc/functions
+++ b/initrd/initrd-stuff/etc/functions
@@ -130,8 +130,9 @@ running kernel - see error messages above\n\
for mnt in nfsmount mount none; do
test -x /bin/$mnt && break;
done
-loadmod /lib/modules/@@@KERNVER@@@/kernel/fs/nfs/nfs.ko \
- "needed for mounting rootfs"
+[ -f /lib/modules/@@@KERNVER@@@/kernel/fs/nfs/nfs.ko ] && \
+ loadmod /lib/modules/@@@KERNVER@@@/kernel/fs/nfs/nfs.ko \
+ "needed for mounting rootfs"
case $mnt in
nfsmount)
nfsmount -o ro $nfsroot /mnt || error $errmsg
@@ -140,7 +141,6 @@ case $mnt in
portmap || error " Portmapper should be present, if normal mount \
command is used. Please\n check your initial ramdisk setup (mkdxsinitrd)."
mount -n -t nfs -o ro $nfsroot /mnt || error $errmsg
-
killall -9 portmap
;;
none)
@@ -196,8 +196,9 @@ if [ "$dhcp" = "none" ] ; then
else
# ensure the interface is up
ipsetup 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eth0 &
- loadmod /lib/modules/@@@KERNVER@@@/kernel/net/packet/af_packet.ko \
- "needed for dhcp";
+ [ -f /lib/modules/@@@KERNVER@@@/kernel/net/packet/af_packet.ko ] && \
+ loadmod /lib/modules/@@@KERNVER@@@/kernel/net/packet/af_packet.ko \
+ "needed for dhcp";
echo "Starting $dhcp for configuration"
mkdir /var/lib/dhcp 2>&1 >/dev/null
fi
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index 0e3111f6..48a9f144 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -231,13 +231,6 @@ filesystem module for the client root\n filesystem ontop of the (D)NBD."
esac
fi
-# if root filesystem should be imported via udp based distributed network
-# block device
-if [ -n "${DNBDOPT}" ] ; then
- modprobe ${MODPRV} dnbd || echo "failed to load dnbd!"
-
-fi
-
# if no type of root filesystem is passed via kernel command line try
# information gathered from dhcp process
if [ -z "${DNBDOPT}" -a -z "${NBDOPT}" -a -z "${NFSROOT}" ] ; then
@@ -385,17 +378,16 @@ waitfor /tmp/svcfg 20000 || error " For some reason the software config \
of this client did not finish in\n time. You might check the process list \
and list the modules loaded until\n now."
date
-bash
+#bash
# IP configuration is made and should not be updated automatically
killall -9 dhcpcd dhclient pump 2>/dev/null
# unmount the bind mounted modules directory
umount -n /lib/modules/${KERNEL} || error "Unmount of the kernel \
modules directory failed for some reason."
-# close script for stuff to execute during early bootup
+# close runlevel script for stuff to execute during early bootup
d_mkbootld close
# reset hotplug
echo "/sbin/hotplug" > /proc/sys/kernel/hotplug
-echo ""
test -f /mnt/etc/inittab || error " The file /etc/inittab does not exist or \
is no regular one. It is needed\n for the bootup procedure to follow."
umount -n /sys || error " Unmount of the kernel sys directory \