Replace wget whith curl.
Set fstype using findmnt when using manual paritioning.