View | Details | Raw Unified | Return to bug 4888
Collapse All | Expand All

(-)mkinitrd.orig (-1 / +10 lines)
Lines 151-156 Link Here
151
loopFs=
151
loopFs=
152
loopFile=
152
loopFile=
153
uname_r=`uname -r`
153
uname_r=`uname -r`
154
uname_m=`uname -m`
155
case "$uname_m" in
156
	x86_64)
157
		libdir=/lib64
158
		;;
159
	*)
160
		libdir=/lib
161
		;;
162
esac
154
163
155
ModuleAlreadyLoaded()
164
ModuleAlreadyLoaded()
156
{
165
{
Lines 397-403 Link Here
397
	Mkdir -p $MNTDIR/{etc,dev,safedev,loopfs} ||
406
	Mkdir -p $MNTDIR/{etc,dev,safedev,loopfs} ||
398
		Fatal "Failed to create directories."
407
		Fatal "Failed to create directories."
399
408
400
	Install /lib/mkinitrd/busybox "$MNTDIR/bin/sh"
409
	Install $libdir/mkinitrd/busybox "$MNTDIR/bin/sh"
401
	Ln -s sh "$MNTDIR/bin/echo"
410
	Ln -s sh "$MNTDIR/bin/echo"
402
	Ln -s sh "$MNTDIR/bin/insmod"
411
	Ln -s sh "$MNTDIR/bin/insmod"
403
	Ln -s sh "$MNTDIR/bin/modprobe"
412
	Ln -s sh "$MNTDIR/bin/modprobe"

Return to bug 4888