gnomeos-make-image.sh: Take care of downloading and patching dracut
This commit is contained in:
parent
6f00173ff2
commit
a9da340e27
|
|
@ -34,6 +34,15 @@ for x in $DEPENDS; do
|
||||||
done
|
done
|
||||||
|
|
||||||
OSTREE=${OSTREE:-ostree}
|
OSTREE=${OSTREE:-ostree}
|
||||||
|
if test -z "$DRACUT"; then
|
||||||
|
if ! test -d dracut; then
|
||||||
|
echo "Checking out and patching dracut..."
|
||||||
|
git clone git://git.kernel.org/pub/scm/boot/dracut/dracut.git
|
||||||
|
(cd dracut; git am $SRCDIR/0001-Support-OSTree.patch)
|
||||||
|
(cd dracut; make)
|
||||||
|
fi
|
||||||
|
DRACUT=`pwd`/dracut/dracut
|
||||||
|
fi
|
||||||
|
|
||||||
case `uname -p` in
|
case `uname -p` in
|
||||||
x86_64)
|
x86_64)
|
||||||
|
|
@ -141,6 +150,6 @@ cp ${SRCDIR}/ostree_switch_root ${WORKDIR}
|
||||||
OBJ=gnomeos-initrd.img
|
OBJ=gnomeos-initrd.img
|
||||||
if ! test -f ${OBJ}; then
|
if ! test -f ${OBJ}; then
|
||||||
rm -f ${OBJ}.tmp
|
rm -f ${OBJ}.tmp
|
||||||
dracutbasedir=/src/build/jhbuild/share/dracut /src/build/jhbuild/sbin/dracut -v --include `pwd`/ostree_switch_root /sbin/ostree_switch_root ${OBJ}.tmp
|
$DRACUT -l -v --include `pwd`/ostree_switch_root /sbin/ostree_switch_root ${OBJ}.tmp
|
||||||
mv ${OBJ}.tmp ${OBJ}
|
mv ${OBJ}.tmp ${OBJ}
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue