Revision 66840d7a snf-image-host/common.sh.in

b/snf-image-host/common.sh.in
189 189
    dd bs=512 count=2880 if=/dev/zero of="$img"
190 190
    mkfs.ext2 -F "$img" > /dev/null
191 191
    mount "$img" "$target" -o loop
192
    set | egrep ^snf_export_\\w+=|sed -e 's/^snf_export_/SNF_IMAGE_/' | \
193
    while read line; do
194
        echo "export $line" >> "$target/rules"
195
    done
192
    set | egrep ^snf_export_\\w+= | sed -e 's/^snf_export_/export SNF_IMAGE_/' \
193
        > "$target/rules"
196 194
    umount "$target"
197 195
}
198 196

  

Also available in: Unified diff