Kaydet (Commit) 7cb697f7 authored tarafından Your Name's avatar Your Name

config use build

üst 09af6fd0
...@@ -29,5 +29,5 @@ else ...@@ -29,5 +29,5 @@ else
find ${WORKDIR}/${MODDIR} | grep debug | xargs rm -rf find ${WORKDIR}/${MODDIR} | grep debug | xargs rm -rf
fi fi
fi fi
find ${WORKDIR}/lib/modules/* | grep ".ko.xz" | xargs xz -d || true find ${WORKDIR}/lib/modules/* | grep ".ko.xz" | xargs xz -d &> /dev/null || true
find ${WORKDIR}/lib/modules/* | grep ".ko.gz" | xargs gzip -d || true find ${WORKDIR}/lib/modules/* | grep ".ko.gz" | xargs gzip -d &> /dev/null || true
[ "$CONFIG" != "" ] || CONFIG=/etc/initrd.conf inf "Using config" "$CONFIG"
debug "Using config" "$CONFIG"
mkdir -p ${WORKDIR}/etc mkdir -p ${WORKDIR}/etc
if [ -f $CONFIG ] ; then if [ -f $CONFIG ] ; then
cat ${CONFIG} > ${WORKDIR}/etc/initrd.conf cat ${CONFIG} > ${WORKDIR}/etc/initrd.conf
......
#!/bin/bash #!/bin/bash
set -e set -e
[ -f /etc/initrd.conf ] && . /etc/initrd.conf
. /lib/initrd/build-functions.sh . /lib/initrd/build-functions.sh
parse_args $* parse_args $*
. /lib/initrd/common.sh . /lib/initrd/common.sh
......
...@@ -18,6 +18,7 @@ if [ "$LANG" == "" ] ; then ...@@ -18,6 +18,7 @@ if [ "$LANG" == "" ] ; then
fi fi
fi fi
[ "${CPIO_COMPRESS}" == "" ] && CPIO_COMPRESS=cat [ "${CPIO_COMPRESS}" == "" ] && CPIO_COMPRESS=cat
[ "$CONFIG" != "" ] || CONFIG=/etc/initrd.conf
LANGFILE=${LANGDIR}/$(echo $LANG).txt LANGFILE=${LANGDIR}/$(echo $LANG).txt
msg() { msg() {
message=$(translate $1) message=$(translate $1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment