diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index d18c6c5b..11517b96 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -805,7 +805,15 @@ export prefix="" # Assume there is no Platform Backup (persistent) Partition export BACKUP_PART_FOUND=0 -export STOR_DEV_FDS="$(ls -1 /proc/$$/fd | egrep -v "^(0|1|2|255)$" | xargs)" +export STOR_DEV_FDS="" + +export PROC_SELF_FDS="$(ls -1 /proc/$$/fd | egrep -v "^(0|1|2|255)$" | xargs)" +for fd in ${PROC_SELF_FDS}; do + export realpath=$(readlink -f /proc/$$/fd/"${fd}") + if [ -e "${realpath}" ]; then + STOR_DEV_FDS="${STOR_DEV_FDS} ${fd}" + fi +done ########################################################################## # Local Kickstart variables #