root / common_windows.sh @ 47c86659
History | View | Annotate | Download (789 Bytes)
1 |
|
---|---|
2 |
if [ -z "$windows_support" ] ; then |
3 |
log_error "Windows support is disabled." |
4 |
exit 1; |
5 |
fi |
6 |
|
7 |
windows_format_disk0() { |
8 |
# |
9 |
# The -f is needed, because we use an optimal alignment and sfdisk complains |
10 |
# about partitions not ending on clylinder boundary. |
11 |
# |
12 |
local sfdisk_cmd="$SFDISK -uS -H 255 -S 63 -f --quiet --Linux --DOS $1" |
13 |
|
14 |
# for now we do not support boot partitions... |
15 |
$sfdisk_cmd > /dev/null <<EOF |
16 |
2048,,7,* |
17 |
EOF |
18 |
|
19 |
} |
20 |
|
21 |
windows_setup_console() { |
22 |
# OK, well, I don't support windows serial consoles yet. I don't really plan |
23 |
# to do it in the future either, but you never know... |
24 |
echo "Serial console for windows is not supported..." |
25 |
} |
26 |
|
27 |
windows_filesystem_check() { |
28 |
# Nothing to do for now.... |
29 |
echo "No filesystem check needed..." |
30 |
} |