|
Lines 26-32
Link Here
|
| 26 |
("/var/ftp" . "nodev,nosuid,relatime") |
26 |
("/var/ftp" . "nodev,nosuid,relatime") |
| 27 |
("/var/www" . "nodev,relatime") |
27 |
("/var/www" . "nodev,relatime") |
| 28 |
("/var/cache/squid" . "nodev,noexec,nosuid,relatime") |
28 |
("/var/cache/squid" . "nodev,noexec,nosuid,relatime") |
| 29 |
("/mnt/disk" . #f))) |
29 |
("/boot/efi" . #f))) |
| 30 |
|
30 |
|
| 31 |
(define bare-mountpoints '("/boot")) |
31 |
(define bare-mountpoints '("/boot")) |
| 32 |
|
32 |
|
|
Lines 111-119
Link Here
|
| 111 |
"Assign mountpoint" "Invalid mountpoint: not a SWAPFS"))) |
111 |
"Assign mountpoint" "Invalid mountpoint: not a SWAPFS"))) |
| 112 |
|
112 |
|
| 113 |
((member (assv-ref ((assv-ref (obj) 'fsim)) 'name) '("FAT16" "FAT32" "NTFS")) |
113 |
((member (assv-ref ((assv-ref (obj) 'fsim)) 'name) '("FAT16" "FAT32" "NTFS")) |
| 114 |
(or (string-prefix? "/mnt/" val) |
114 |
(or (string-prefix? "/boot/efi" val) |
| 115 |
(throw 'swig-system-error |
115 |
(throw 'swig-system-error |
| 116 |
"Assign mountpoint" "Invalid mountpoint: should start with /mnt"))) |
116 |
"Assign mountpoint" "Invalid mountpoint: should start with /boot/efi (FIXME: maybe)"))) |
| 117 |
(#t #t))) |
117 |
(#t #t))) |
| 118 |
|
118 |
|
| 119 |
(define (mntpoint-unique? obj val) |
119 |
(define (mntpoint-unique? obj val) |
|
Lines 571-577
Link Here
|
| 571 |
obj 'mntpoint |
571 |
obj 'mntpoint |
| 572 |
(cond ((or (isntfs? obj) |
572 |
(cond ((or (isntfs? obj) |
| 573 |
(isfat? obj)) |
573 |
(isfat? obj)) |
| 574 |
"/mnt/disk") |
574 |
"/boot/efi") |
| 575 |
((islvm? obj) |
575 |
((islvm? obj) |
| 576 |
(let ((sane-mountpoints (filter (lambda(s) (not (member s bare-mountpoints))) rest))) |
576 |
(let ((sane-mountpoints (filter (lambda(s) (not (member s bare-mountpoints))) rest))) |
| 577 |
(if (null? sane-mountpoints) "" |
577 |
(if (null? sane-mountpoints) "" |