nextcloudpi/etc/ncp-config.d/nc-format-USB.cfg
Tobias Knöppler 851d1b89a8 Improve robustness of nc-format-usb (#1533)
- Prevent users from breaking their system if datadir is on USB
- Support systems that don't use an SD card as root disk
2022-08-18 10:20:18 +02:00

24 lines
712 B
INI

{
"id": "nc-format-USB",
"name": "Nc-format-USB",
"title": "nc-format-USB",
"description": "Format an external USB drive as a BTRFS partition (dangerous)",
"info": "Make sure that ONLY the USB drive that you want to format is plugged in.\ncareful, this will destroy any data in the USB drive\n\n** YOU WILL LOSE ALL YOUR USB DATA **",
"infotitle": "Instructions for USB drive formatting",
"params": [
{
"id": "LABEL",
"name": "Label",
"value": "myCloudDrive",
"suggest": "myCloudDrive"
},
{
"id": "ALLOW_DATADIR_REMOVAL",
"name": "Remove data dir (MAY BREAK YOUR SYSTEM)",
"type": "bool",
"value": "no",
"suggest": "no"
}
]
}