summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/base8
-rw-r--r--install/ide2
-rw-r--r--mkinitcpio4
3 files changed, 8 insertions, 6 deletions
diff --git a/install/base b/install/base
index 9cd2030..27edf15 100644
--- a/install/base
+++ b/install/base
@@ -6,11 +6,11 @@ install ()
add_dir "/sys"
add_dir "/dev"
- add_nod "/dev/null" 644 c 1 3
- add_nod "/dev/zero" 644 c 1 5
- add_nod "/dev/console" 644 c 5 1
+ add_device "/dev/null" c 1 3
+ add_device "/dev/zero" c 1 5
+ add_device "/dev/console" c 5 1
- for f in /lib -name klibc-*.so; do
+ for f in $(find /lib -name klibc-*.so); do
add_file $f
done
diff --git a/install/ide b/install/ide
index 1afedd9..cd9625a 100644
--- a/install/ide
+++ b/install/ide
@@ -3,7 +3,7 @@
install ()
{
MODULES=""
- for m in $(all_modules | grep "/ide/");
+ for m in $(all_modules "/ide/");
do
MODULES="$MODULES $(basename $m)"
done
diff --git a/mkinitcpio b/mkinitcpio
index c37f6a9..d862753 100644
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -17,6 +17,7 @@
# Settings
BASEDIR=""
KERNELVERSION="$(uname -r)"
+FUNCTIONS="functions" #/lib/initramfs/functions
CONFIG="mkinitcpio.conf"
HOOKDIR="hooks"
INSTDIR="install"
@@ -90,6 +91,7 @@ else
touch "${FILELIST}"
fi
+source "${FUNCTIONS}"
#parse 'global' hook, as defined in ${CONFIG}
parse_hook
@@ -118,7 +120,7 @@ fi
if [ "x$GENIMG" != "x" ]; then
if ! gen_init_cpio ${FILELIST} | gzip -9 > "${GENIMG}"; then
- err "Failed to create '${GENIMG}' image" >2
+ err "Failed to create '${GENIMG}' image"
fi
if [ "x${SAVELIST}" == "x" ]; then