Commit 66840d7a authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a bug in host's floppy exported variables

The bug was triggered when a variable contained new lines
parent 6d789991
......@@ -189,10 +189,8 @@ create_floppy() {
dd bs=512 count=2880 if=/dev/zero of="$img"
mkfs.ext2 -F "$img" > /dev/null
mount "$img" "$target" -o loop
set | egrep ^snf_export_\\w+=|sed -e 's/^snf_export_/SNF_IMAGE_/' | \
while read line; do
echo "export $line" >> "$target/rules"
set | egrep ^snf_export_\\w+= | sed -e 's/^snf_export_/export SNF_IMAGE_/' \
> "$target/rules"
umount "$target"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment