
# mkdir /mnt
# mount ${device_name} /mnt
# mknod ${image} p
# tftp ${tftp_server} <<-EOT &
binary
put ${image}
EOT
tar czf ${image}
|
# tftp ${tftp_server} <<-EOT &
binary
get ${image}
EOT
tar xzf ${image}
|
You have to put the mkdir and tar programs in the initrd image so that the script can use them.