/usr/lib/fetch-url/floppy is in ubiquity 18.04.14.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | protocol_fetch() {
local FILE="/media/${1#floppy://*}"
mountmedia floppy || true
touch /var/run/preseed-usedfloppy
if [ ! -e "$FILE" ]; then
return 4
elif ! cp "$FILE" $2; then
return 1
else
return 0
fi
}
|