Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 18 years ago
parent
commit
acbb6f10fb
2 changed files with 7 additions and 0 deletions
  1. +4
    -0
      package/base/rockinitrd/initrd_essential.txt
  2. +3
    -0
      package/base/rockinitrd/mkinitrd.sh

+ 4
- 0
package/base/rockinitrd/initrd_essential.txt

@ -1,4 +1,7 @@
# The '-L' is passed as option to cp and lets cp follow symlinks
/bin/bash /bin/bash -L /bin/bash /bin/bash -L
/bin/sh /bin/sh /bin/sh /bin/sh
/bin/ls /bin/ls /bin/ls /bin/ls
/sbin/pivot_root /sbin/pivot_root /sbin/pivot_root /sbin/pivot_root
@ -10,3 +13,4 @@
/etc/fstab /etc/fstab /etc/fstab /etc/fstab
/bin/mkdir /bin/mkdir /bin/mkdir /bin/mkdir
/bin/rmdir /bin/rmdir /bin/rmdir /bin/rmdir

+ 3
- 0
package/base/rockinitrd/mkinitrd.sh

@ -152,6 +152,9 @@ echo -n "Copying other files ... "
for x in ${rootdir}/etc/conf/initrd/initrd_* ; do for x in ${rootdir}/etc/conf/initrd/initrd_* ; do
[ -f ${x} ] || continue [ -f ${x} ] || continue
while read file target cpopt; do while read file target cpopt; do
if [ -z "$file" -o "$file" = "#" ]; then
continue
fi
file="${rootdir}/${file}" file="${rootdir}/${file}"
if [ ! -e ${file} ] ; then if [ ! -e ${file} ] ; then
echo "${file} is requested by ${x} but doesn't exist!" >&2 echo "${file} is requested by ${x} but doesn't exist!" >&2

Loading…
Cancel
Save