Skip to content

Commit 29fc74a

Browse files
authored
Merge pull request unraid#2564 from SimonFair/change-flash-name
feat(flash): change flash to boot device
2 parents 91a0a6d + ca1e231 commit 29fc74a

29 files changed

Lines changed: 100 additions & 159 deletions

emhttp/languages/en_US/helptext.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ periodically to move user share files off the Cache and onto the Array.
103103
:end
104104

105105
:boot_device_help:
106-
Vital array configuration is maintained on the USB Flash device; for this reason, it must remain
107-
plugged in to your server. Click on [Flash](/Main/Flash?name=flash) to see the GUID and registration
108-
information, and to configure export settings. Since the USB Flash device is formatted using FAT file system,
106+
Vital array configuration is maintained on the boot device; for this reason, it must remain
107+
plugged in to your server. Click on [Boot Device](/Main/Boot?name=flash) to see the GUID and registration
108+
information, and to configure export settings. Since the boot device is formatted using FAT file system,
109109
it may only be exported using SMB protocol.
110110
:end
111111

@@ -442,7 +442,7 @@ array or the cache disk/pool.
442442
:end
443443

444444
:flash_backup_help:
445-
Use *Flash backup* to create a single zip file of the current contents of the flash device and store it locally on your computer.
445+
Use *Boot device backup* to create a single zip file of the current contents of the boot device and store it locally on your computer.
446446
:end
447447

448448
:syslinux_cfg_help:
@@ -1238,7 +1238,7 @@ Enter the TELNET port, default port is 23.
12381238

12391239
:mgmt_use_ssh_help:
12401240
SSH is enabled by default and offers a secure way of CLI access. Upon system startup SSH keys are automatically generated
1241-
if not yet existing, and stored on the flash device in the folder */config/ssh*.
1241+
if not yet existing, and stored on the boot device in the folder */config/ssh*.
12421242
:end
12431243

12441244
:mgmt_ssh_port_help:
@@ -1374,7 +1374,7 @@ provisioned and downloaded to your server.
13741374

13751375
**nginx certificate handling details**
13761376

1377-
nginx makes use of two certificate files stored on the USB flash boot device:<br>
1377+
nginx makes use of two certificate files stored on the boot device:<br>
13781378

13791379
- a self-signed certificate: `config/ssl/certs/<server-name>_unraid_bundle.pem`
13801380

@@ -1618,7 +1618,7 @@ This will send a copy of the syslog messages to the designated server.
16181618
This setting is NO by default and must be used with care to avoid unnecessary wear and tear of the USB device.
16191619

16201620
Change this setting to YES when troubleshooting is required and it is not possible to get the regular diagnostics information.
1621-
A mirror of the syslog file is stored in the **logs** folder of the flash device.
1621+
A mirror of the syslog file is stored in the **logs** folder of the boot device.
16221622
:end
16231623

16241624
:syslog_shutdown_flash_help:
@@ -1984,8 +1984,8 @@ The interface assignment rules can be changed here and might be necessary to set
19841984
**eth0** is the main interface used to manage the Unraid system. The other interfaces are optional and may be used as desired.
19851985
Every interface must be uniquely identified by its MAC (hardware) address.
19861986

1987-
The interface assignment is stored on the flash device under */config/network-rules.cfg*. This file can be viewed with any editor, but it is recommended to make changes via the webGUI only.<br>
1988-
Deleting the file *network-rules.cfg* from the flash device will restore automatic interface assignment after a system reboot.
1987+
The interface assignment is stored on the boot device under */config/network-rules.cfg*. This file can be viewed with any editor, but it is recommended to make changes via the webGUI only.<br>
1988+
Deleting the file *network-rules.cfg* from the boot device will restore automatic interface assignment after a system reboot.
19891989
:end
19901990

19911991
:eth_routing_table_help:
@@ -2174,7 +2174,7 @@ Select the desired time format which is used in the notifications archive. Recom
21742174

21752175
:notifications_store_flash_help:
21762176
By default notifications are stored on RAM disk, which will get lost upon system reboot.
2177-
Notifications may be stored permanently on the flash drive under folder '/boot/config/plugins/dynamix' instead.
2177+
Notifications may be stored permanently on the boot drive under folder '/boot/config/plugins/dynamix' instead.
21782178
:end
21792179

21802180
:notifications_system_help:
@@ -2293,7 +2293,7 @@ Select a default template when it is the first time you are configuring this app
22932293

22942294
**User-defined templates**<br>
22952295
Once you've added an application to your system through a Default template,
2296-
the settings you specified are saved to your USB flash device to make it easy to rebuild your applications in the event an upgrade were to fail or if another issue occurred.
2296+
the settings you specified are saved to your boot device to make it easy to rebuild your applications in the event an upgrade were to fail or if another issue occurred.
22972297
To rebuild, simply select the previously loaded application from the User-defined list and all the settings for the container will appear populated from your previous setup.
22982298
Clicking create will redownload the necessary files for the application and should restore you to a working state.
22992299
To delete a User-defined template, select it from the list above and click the red X to the right of it.
@@ -2555,7 +2555,7 @@ Unraid server SSL port for secure web traffic.
25552555
:end
25562556

25572557
:unraidnet_inactivespanel_help:
2558-
Click Activate to set up a local git repo for your local USB Flash boot device and connect to a dedicated remote on unraid.net tied to this server.
2558+
Click Activate to set up a local git repo for your local boot device and connect to a dedicated remote on unraid.net tied to this server.
25592559
:end
25602560

25612561
:unraidnet_changespanel_help:
@@ -2720,7 +2720,7 @@ This page displays all the drivers available on this system. Filter the list acc
27202720

27212721
Any 3rd party driver installed by a plugin will have a support symbol next to it, click this to get support for the plugin.
27222722

2723-
Click the edit button to add/modify/delete any modprobe.d config file in the config/modprobe.d directory on the flash drive.
2723+
Click the edit button to add/modify/delete any modprobe.d config file in the config/modprobe.d directory on the boot drive.
27242724
:end
27252725

27262726
:console_keyboard_help:

emhttp/plugins/dynamix.plugin.manager/scripts/plugin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ name - MANDATORY plugin name, e.g., "myplugin" or "my-plugin" etc.
105105
106106
The plugin should also create a directory under `/boot/config/plugins` named after the plugin, e.g.,
107107
`/boot/config/plugins/myplugin`. Here is where you store plugin-specific files such as a configuration
108-
file and icon file. Note that this directory exists on the users USB Flash device and writes should be
108+
file and icon file. Note that this directory exists on the user's boot device and writes should be
109109
minimized.
110110
111111
Upon successful installation, the plugin manager will copy the input plugin file to `/boot/config/plugins`
112-
on the users USB Flash device, and create a symlink in `/var/log/plugins` also named after the plugin,
112+
on the user's boot device, and create a symlink in `/var/log/plugins` also named after the plugin,
113113
e.g., `/var/log/plugins/myplugin`. Each time the unRaid server is re-booted, all plugins stored
114114
in `/boot/config/plugins` are automatically installed; plugin authors should be aware of this behavior.
115115

emhttp/plugins/dynamix.vm.manager/VMSettings.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ _(VM Usage refresh timer)_ (_(seconds)_):
263263

264264
_(Boot Parameter Settings)_:
265265
: <div style="max-width: 400px; padding: 12px 16px; border-radius: 5px; background-color: rgba(240, 173, 78, 0.08); border: 1px solid rgba(240, 173, 78, 0.3); border-left: 4px solid #f0ad4e; font-size: 13px; line-height: 1.5; box-sizing: border-box;">
266-
_(PCIe ACS Override, VFIO interrupts & GPU framebuffer settings are managed in)_ <a href="/Main/Flash#boot-parameters" style="color: #2196F3; font-weight: bold; text-decoration: underline;">_(Boot Parameters)_</a>.
266+
_(PCIe ACS Override, VFIO interrupts & GPU framebuffer settings are managed in)_ <a href="/BootParameters#vm-parameters" style="color: #2196F3; font-weight: bold; text-decoration: underline;">_(Boot Parameters)_</a>.
267267
</div>
268268

269269
</div>

emhttp/plugins/dynamix.vm.manager/scripts/libvirt_init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ ! -d /etc/libvirt/qemu ]; then
1010
log "initializing /etc/libvirt"
1111
# initialize with default settings
1212
cp -rp /etc/libvirt-/* /etc/libvirt
13-
# check if libvirt image file exists on USB flash
13+
# check if libvirt image file exists on boot device
1414
OLD_IMAGE=/boot/config/plugins/dynamix.kvm.manager/domain.img
1515
if [ ! -f $OLD_IMAGE ]; then
1616
OLD_IMAGE=/boot/config/plugins/virtMan/virtMan.img

emhttp/plugins/dynamix/ArrayOperation.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ var devices = new NchanSubscriber('/sub/devices<?=$spot?",parity":""?>',{subscri
486486
devices.on('message', function(msg, meta) {
487487
switch (<?if($spot):?>meta.id.channel()<?else:?>0<?endif;?>) {
488488
case 0:
489-
// array + pool + ua + flash devices
489+
// array + pool + ua + boot devices
490490
var get = JSON.parse(msg);
491491
for (var name in get) $('#'+name).html(get[name]);
492492
if (recall !== null) recall.html('&nbsp;');

emhttp/plugins/dynamix/BootInfo.page

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Menu="Boot:1"
2-
Title="Boot Device Settings"
2+
Title="Boot Device"
33
Tag="usb"
44
---
55
<?PHP
@@ -17,7 +17,7 @@ Tag="usb"
1717
<script>
1818
function cleanUp(zip) {
1919
if (document.hasFocus()) {
20-
$('input[value="_(Creating Flash backup)_..."]').val("_(Flash backup)_").prop('disabled',false);
20+
$('input[value="_(Creating boot device backup)_..."]').val("_(Boot device backup)_").prop('disabled',false);
2121
$('div.spinner').hide('slow');
2222
$('#pleaseWait').hide('slow');
2323
$.post('/webGui/include/Download.php',{cmd:'unlink',file:zip});
@@ -26,23 +26,24 @@ function cleanUp(zip) {
2626
}
2727
}
2828
function backup() {
29-
$('input[value="_(Flash backup)_"]').val('_(Creating Flash backup)_...').prop('disabled',true);
29+
$('input[value="_(Boot device backup)_"]').val('_(Creating boot device backup)_...').prop('disabled',true);
3030
$('div.spinner').show('slow');
3131
$('#pleaseWait').show('slow');
3232
$.post('/webGui/include/Download.php',{cmd:'backup'},function(zip) {
3333
if (zip) {
3434
location = '/'+zip;
3535
setTimeout(function(){cleanUp(zip);},6000);
3636
} else {
37-
$('input[value="_(Creating Flash backup)_..."]').val("_(Flash backup)_");
37+
var $btn = $('input[value="_(Creating boot device backup)_..."]');
38+
$btn.val("_(Boot device backup)_").prop('disabled',false);
3839
$('div.spinner').hide('slow');
3940
$('#pleaseWait').hide('slow');
4041
swal({title:"_(Creation error)_",text:"_(Insufficient free disk space available)_",type:'error',html:true,confirmButtonText:"_(Ok)_"});
4142
}
4243
});
4344
}
4445
</script>
45-
<div id="pleaseWait" style="display:none;text-align:center;margin-bottom:24px"><span class="red-text strong">_(Please wait)_... _(creating Flash backup zip file (this may take several minutes))_</span></div>
46+
<div id="pleaseWait" style="display:none;text-align:center;margin-bottom:24px"><span class="red-text strong">_(Please wait)_... _(creating boot device backup zip file (this may take several minutes))_</span></div>
4647

4748
_(Flash Vendor)_:
4849
: <?=htmlspecialchars($var['flashVendor'] ?? '', ENT_QUOTES, 'UTF-8');?>
@@ -53,8 +54,6 @@ _(Flash Product)_:
5354
_(Flash GUID)_:
5455
: <?=htmlspecialchars($var['flashGUID'] ?? '', ENT_QUOTES, 'UTF-8');?>&nbsp;
5556

56-
_(Pool GUID)_:
57-
: <?=htmlspecialchars($var['poolGUID'] ?? '', ENT_QUOTES, 'UTF-8');?>&nbsp;
5857

5958
<?if (strstr($var['regTy'], "blacklisted")):?>
6059

@@ -72,6 +71,6 @@ _(Pool GUID)_:
7271

7372
&nbsp;
7473
: <span class="inline-block">
75-
<input type="button" value="_(Flash backup)_" onclick="backup()">
74+
<input type="button" value="_(Boot device backup)_" onclick="backup()">
7675
<input type="button" value="_(Done)_" onclick="done()">
7776
</span>

emhttp/plugins/dynamix/BootParameters.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $csrf_token = $var['csrf_token'] ?? '';
4949
</div>
5050

5151
<!-- VM Passthrough Section -->
52-
<section class="section" id="boot-parameters">
52+
<section class="section" id="vm-parameters">
5353
<h3 class="section-header">_(VM Passthrough)_</h3>
5454

5555
<div class="warning-box">

emhttp/plugins/dynamix/DashStats.page

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ switch ($themeHelper->getThemeName()) { // $themeHelper set in DefaultPageLayout
513513
<div class='pie' id='sys0'><span class='sys0'></span><span class='var0'></span></div>
514514
</span>
515515
<span>
516-
<a class='info hand none'>_(Flash device)_<span>_(Percent usage of flash usb device)_ (<?=$flashsize?>)</span></a>
516+
<a class='info hand none'>_(Boot device)_<span>_(Percent usage of boot device)_ (<?=$flashsize?>)</span></a>
517517
<div class='pie' id='sys1'><span class='sys1'></span><span class='var1'></span></div>
518518
</span>
519519
<span>
@@ -1183,7 +1183,7 @@ switch ($themeHelper->getThemeName()) { // $themeHelper set in DefaultPageLayout
11831183
<span class='tile-header-left'>
11841184
<i class='icon-disk f32'></i>
11851185
<div class='section'>
1186-
<h3 class='tile-header-main'><?=_(native($pool),3).($started ? '' : ' ('._('stopped').')')?> <span class='tile-header-main' id="pool_status_<?=$i?>"> <?=_('Status')." :"?></span></h3>
1186+
<h3 class='tile-header-main'><?=($pool=='flash' ? _('Internal boot') : _(native($pool),3)).($started ? '' : ' ('._('stopped').')')?> <span class='tile-header-main' id="pool_status_<?=$i?>"> <?=_('Status')." :"?></span></h3>
11871187
<span>
11881188
<?if ($started):?>
11891189
<?
@@ -2613,7 +2613,7 @@ dashboard.on('message',function(msg,meta) {
26132613
for (var i=0,name; name=get.name[i]; i++) if (i!=1) html.push("<i class='ups fa fa-circle' style='color:"+(colors[i]||blue)+"'></i>"+name+": "+(i==0?get.ram[5]:get.ram[i*2+3]));
26142614
html.push("<i class='ups fa fa-circle' style='color:"+colors[1]+"'></i>"+get.name[1]+": "+get.ram[3]);
26152615
$('#dynamic').html(html.join('<br>'));
2616-
// flash, Log & Docker graphs
2616+
// boot device, Log & Docker graphs
26172617
for (var k=1,sys; sys=get.sys[k-1]; k++) {
26182618
var load = sys[0].slice(0,-1);
26192619
$('.sys'+k).text(sys[0]).css({'color':fontColor(load,<?=$display['critical']?>,<?=$display['warning']?>)});

emhttp/plugins/dynamix/DeviceInfo.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ _(Name)_:
836836

837837
<?else:?>
838838
_(Name)_:
839-
: <?=_(my_disk(native(htmlspecialchars($name))), 3)?>
839+
: <?=$name=='flash' ? _('Boot Device') : _(my_disk(native(htmlspecialchars($name))), 3)?>
840840

841841
<?endif;?>
842842
<?if (diskStatus('_NP')):?>

emhttp/plugins/dynamix/Flash.page

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)