27 Sep
2011
27 Sep
'11
1:22 a.m.
Avoids explosions if a user has no HOOKS in their config, as seen: https://bbs.archlinux.org/viewtopic.php?pid=966344 Signed-off-by: Dave Reisner <dreisner@archlinux.org> --- mkinitcpio | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 98bea64..0116722 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -183,6 +183,9 @@ fi TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/mkinitcpio.XXXXXX") declare BUILDROOT=$TMPDIR/root +# explicitly create the buildroot +mkdir "$TMPDIR/root" + # use preset $PRESET if [[ $PRESET ]]; then # allow absolute path to preset file, else resolve it -- 1.7.6.4