Browse Source

Tobias Hintze:

updated rockinitramfs


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8639 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Tobias Hintze 17 years ago
parent
commit
4867835e92
3 changed files with 5 additions and 30 deletions
  1. +0
    -27
      package/teha/rockinitramfs/files/init.d/90-go_real
  2. +1
    -1
      package/teha/rockinitramfs/files/run_init/90-go_real
  3. +4
    -2
      package/teha/rockinitramfs/libexec/mkinitramfs.sh

+ 0
- 27
package/teha/rockinitramfs/files/init.d/90-go_real

@ -1,27 +0,0 @@
# read root parameter from cmdline
root=$(sed 's/.*\<root=\([^ ]*\).*/\1/' /proc/cmdline)
# set $(< /proc/cmdline ) ; for arg ; do [[ ${arg} == root=* ]] && root=${arg#root=}
if [ ! -e "$root" ]
then
echo "your root <$root> does not exist."
else
mount $root /real-root
fi
# thanks udevd. you did a great job.
# now go away and let the real system do its work.
echo "terminating udevd..."
killall udevd
sleep 1
rm -rf /dev/.udev
if [ -e /real-root/dev ]
then
mount --move /dev /real-root/dev
mount --move /sys /real-root/sys
mount --move /proc /real-root/proc
else
echo "outch. /real-root/dev does not exist."
fi

+ 1
- 1
package/teha/rockinitramfs/files/run_init/90-go_real

@ -30,5 +30,5 @@ fi
echo "going real..."
if [ -x /real-root/sbin/init ]
then
exec /bin/run_init /real-root /sbin/init
exec /sbin/run_init /real-root /sbin/init
fi

+ 4
- 2
package/teha/rockinitramfs/libexec/mkinitramfs.sh

@ -37,8 +37,9 @@ usage() {
providing a location for files needed by
build.d-scripts
--root-dir prefix for all directory locations
(e.g. /lib/modules, --files-dir, --build-dir)
--root-dir prefix for some directory locations
(/lib/modules, /lib/rock_initramfs
and --files-dir, --build-dir if relative)
--gen_init_cpio alternate binary for gen_init_cpio
(usefull when default binary was cross compiled)
@ -108,6 +109,7 @@ done
[ -z "$mod_origin" ] && mod_origin=$rootdir/lib/modules/$k_ver
[ -z "$outfile" ] && outfile=$rootdir/boot/initramfs-$k_ver.cpio.gz
[ -z "$listoutfile" ] && listoutfile=$rootdir/boot/initramfs-$k_ver.cpio.lst
if [ "$usage" = "1" ]
then

Loading…
Cancel
Save