mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev: Fix zdev dracut module temp file location
During processing, the zdev-provided dracut module creates a temporary file using the mktemp tool. Due to a missing path specification in the filename template, mktemp tries to create the temporary file in the current working directory which fails if that directory is not writable: # cd /sys # dracut -Nf mktemp: failed to create file via template 'dracut-zdev.XXXX': No such file or directory chzdev: Could not write to file : No such file or directory sed: can't read : No such file or directory chzdev: Could not open file : No such file or directory Fix this by specifying option --tmpdir when calling mktemp. Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Holzheu
parent
5ba519973f
commit
f3e552d67c
@@ -35,7 +35,7 @@ installkernel() {
|
||||
}
|
||||
|
||||
install() {
|
||||
local _tempfile=$(mktemp dracut-zdev.XXXX)
|
||||
local _tempfile=$(mktemp --tmpdir dracut-zdev.XXXXXX)
|
||||
|
||||
if chzdev --export - --persistent --by-path / >/dev/null 2>&1 ; then
|
||||
# Use persistent configuration
|
||||
|
||||
Reference in New Issue
Block a user