]> git.ipfire.org Git - thirdparty/dracut.git/commit
Makefile: fix RPM build
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 24 Feb 2020 20:56:37 +0000 (21:56 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 28 Feb 2020 15:31:43 +0000 (16:31 +0100)
commit3f4ffebf33229c9f061d3153b209d1dae205702e
tree4cf10d5ff6fb255def5d33c3108d59e3ad445f7f
parentd5088b1703983f301c00f9f2a00af35a7ee5ddac
Makefile: fix RPM build

`make rpm` usually chose `/tmp` as the `$rpmbuild` dir, which breaks the
dracut build, since it needs to execute `./configure`, but `/tmp` is
mounted with `-o noexec`, leading to:

```
/var/tmp/rpm-tmp.SwEhJO: line 46: ./configure: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.SwEhJO (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.SwEhJO (%build)
```

Switching to `/var/tmp` helps in this case.
Makefile