]> git.ipfire.org Git - thirdparty/dracut.git/commit
lsinitrd.sh: prevent < <$() construct
authorHarald Hoyer <harald@redhat.com>
Thu, 27 Mar 2014 08:27:53 +0000 (09:27 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 1 Apr 2014 06:21:49 +0000 (08:21 +0200)
commitfd9f902477a8d8df6ce0fa1b044484c435fff247
tree232ccb598271e4de3689bd5284b15e8376eb6036
parent2c7f7a337a8adeaa052274aa4b59bb25b90d1ea5
lsinitrd.sh: prevent < <$() construct

Running dracut in a chroot environment, which has /dev not correctly
setup will result in errors like:

/usr/bin/lsinitrd: line 164: /dev/fd/62: No such file or directory
cpio: Malformed number �5�OK��
cpio: Malformed number 5�OK��
cpio: Malformed number �OK��

This is because bash wants /dev/fd/<num> for constructs like:
foo < <$(bar)
lsinitrd.sh