Statistics
| Branch: | Revision:

root / common_windows.sh @ 6738cd80

History | View | Annotate | Download (1016 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
    if [ "${BOOT}" = "yes" ]; then
15
        #One boot partition 100M and the rest %SYSTEMDRIVE%
16
#        $sfdisk_cmd > /dev/null <<EOF
17
#2048,206847,7,*
18
#,,7
19
#EOF
20
        log_error "We do not support windows boot partitions yet."
21
        exit 1;
22
    else # "${BOOT}" = "no"
23
        $sfdisk_cmd > /dev/null <<EOF
24
2048,,7,*
25
EOF
26
    fi
27
}
28

    
29
windows_setup_console() {
30
    # OK, well, I don't support windows serial consoles yet. I don't really plan
31
    # to do it in the future either, but you never know...
32
    echo "Serial console for windows is not supported..."
33
}
34

    
35
windows_filesystem_check() {
36
    # Nothing to do for now....
37
    echo "No filesystem check needed..."
38
}