Commit f84556e8 authored by Bernhard Landauer's avatar Bernhard Landauer Committed by GitHub
Browse files

Merge pull request #139 from Chrysostomus/luks_lvm

Reworked lvm section
parents a638febb caf58483
...@@ -112,7 +112,7 @@ _LvmPvConfBody2="ved anvendelse af partioner(ne):" ...@@ -112,7 +112,7 @@ _LvmPvConfBody2="ved anvendelse af partioner(ne):"
_LvmPvActBody1="Opretter og aktiverer Volume Group" _LvmPvActBody1="Opretter og aktiverer Volume Group"
_LvmPvDoneBody1="Volume Group" _LvmPvDoneBody1="Volume Group"
_LvmPvDoneBody2="er nu oprettet" _LvmPvDoneBody2="er nu oprettet"
_LvmLvNumBody1="Brug [Mellemrun] for at vælge antallet af Logical Volumes (LVs) der skal oprettes på" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Den sidste (eller eneste) LV vil automatisk bruge den tilgængelige plads på Volume Group." _LvmLvNumBody2="Den sidste (eller eneste) LV vil automatisk bruge den tilgængelige plads på Volume Group."
_LvmLvNameBody1="Indtast navn for det Logical Volume (LV) der skal oprettes.\n\nDette svarer til navnet/mærkaten på en partition." _LvmLvNameBody1="Indtast navn for det Logical Volume (LV) der skal oprettes.\n\nDette svarer til navnet/mærkaten på en partition."
_LvmLvNameBody2="BEMÆRK: Dette LV vil automatisk optage resten af den ledige plads på Volume Group" _LvmLvNameBody2="BEMÆRK: Dette LV vil automatisk optage resten af den ledige plads på Volume Group"
......
...@@ -111,7 +111,7 @@ _LvmPvConfBody2="met de volgende partities:" ...@@ -111,7 +111,7 @@ _LvmPvConfBody2="met de volgende partities:"
_LvmPvActBody1="Aanmaak en activering van Volume Groep" _LvmPvActBody1="Aanmaak en activering van Volume Groep"
_LvmPvDoneBody1="Volume Groep" _LvmPvDoneBody1="Volume Groep"
_LvmPvDoneBody2="werd aangemaakt" _LvmPvDoneBody2="werd aangemaakt"
_LvmLvNumBody1="Gebruik [spatie] om het aantal logische volumes (LVM) te selecteren die moeten worden aangemaakt" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="De laatste (of enige) LV zal automatisch 100% van de overblijvende ruimte innemen in de Volume Groep." _LvmLvNumBody2="De laatste (of enige) LV zal automatisch 100% van de overblijvende ruimte innemen in de Volume Groep."
_LvmLvNameBody1="Om een Logisch Volume (LV) aan te maken geef je een naam in.\n\nDit is zoals het geven van een naam/label aan een partitie." _LvmLvNameBody1="Om een Logisch Volume (LV) aan te maken geef je een naam in.\n\nDit is zoals het geven van een naam/label aan een partitie."
_LvmLvNameBody2="NOTE: Deze LV zal alle overgebleven ruimte van de Volume Groep innemen" _LvmLvNameBody2="NOTE: Deze LV zal alle overgebleven ruimte van de Volume Groep innemen"
......
...@@ -103,7 +103,7 @@ _LvmDelVG="Delete Volume Groups" ...@@ -103,7 +103,7 @@ _LvmDelVG="Delete Volume Groups"
_LvMDelAll="Delete *ALL* VGs, LVs, PVs" _LvMDelAll="Delete *ALL* VGs, LVs, PVs"
_LvmDetBody="Existing Logical Volume Management (LVM) detected. Activating. Please Wait..." _LvmDetBody="Existing Logical Volume Management (LVM) detected. Activating. Please Wait..."
_LvmPartErrBody="There are no viable partitions available to use for Logical Volume Management. A minimum of one is required.\n\nIf LVM is already in use, deactivating it will allow the partition(s) used for its Physical Volume(s) to be used again." _LvmPartErrBody="There are no viable partitions available to use for Logical Volume Management. A minimum of one is required.\n\nIf LVM is already in use, deactivating it will allow the partition(s) used for its Physical Volume(s) to be used again."
_LvmNameVgBody="Enter the name of the Volume Group (VG) to create.\n\nThe VG is the new 'virtual device / hard-disk' to create out of the partition(s) selected next." _LvmNameVgBody="Enter the name of the Volume Group (VG) to create.\n\nThe VG is the new 'virtual device/hard-disk' to create out of the partition(s) selected next."
_LvmNameVgErr="Invalid Name Entered. The Volume Group name may be alpha-numeric, but may not contain spaces, start with a '/', or already be in use." _LvmNameVgErr="Invalid Name Entered. The Volume Group name may be alpha-numeric, but may not contain spaces, start with a '/', or already be in use."
_LvmPvSelBody="Select the partition(s) to use for the Physical Volume (PV)." _LvmPvSelBody="Select the partition(s) to use for the Physical Volume (PV)."
_LvmPvConfBody1="Confirm creation of Volume Group" _LvmPvConfBody1="Confirm creation of Volume Group"
...@@ -111,14 +111,14 @@ _LvmPvConfBody2="with the following partitions:" ...@@ -111,14 +111,14 @@ _LvmPvConfBody2="with the following partitions:"
_LvmPvActBody1="Creating and activating Volume Group" _LvmPvActBody1="Creating and activating Volume Group"
_LvmPvDoneBody1="Volume Group" _LvmPvDoneBody1="Volume Group"
_LvmPvDoneBody2="has been created" _LvmPvDoneBody2="has been created"
_LvmLvNumBody1="Use [Spacebar] to select the number of Logical Volumes (LVs) to create in" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in"
_LvmLvNumBody2="The last (or only) LV will automatically use 100% of the remaining space in the Volume Group." _LvmLvNumBody2="The last (or only) LV will automatically use 100% of the remaining space in the Volume Group."
_LvmLvNameBody1="Enter the name of the Logical Volume (LV) to create.\n\nThis is like setting a name / label for a partition." _LvmLvNameBody1="Enter the name of the Logical Volume (LV) to create.\n\nThis is like setting a name or label for a partition."
_LvmLvNameBody2="NOTE: This LV will automatically use up all space remaining on the Volume Group" _LvmLvNameBody2="NOTE: This LV will automatically use up all space remaining on the Volume Group"
_LvmLvNameErrBody="Invalid Name Entered. The Logical Volume (LV) name may be alpha-numeric, but may not contain spaces or be preceeded with a '/'." _LvmLvNameErrBody="Invalid Name Entered. The Logical Volume (LV) name may be alpha-numeric, but may not contain spaces or be preceeded with a '/'."
_LvmLvSizeBody1="remaining" _LvmLvSizeBody1="remaining"
_LvmLvSizeBody2="Enter the size of the Logical Volume (LV) in Megabytes (M) or Gigabytes (G). For example, 100M will create a 100 Megabyte LV. 10G will create a 10 Gigabyte LV." _LvmLvSizeBody2="Enter the size of the Logical Volume (LV) in Megabytes (M) or Gigabytes (G).\nFor example:\n100M will create a 100 Megabyte LV, 10G will create a 10 Gigabyte LV."
_LvmLvSizeErrBody="Invalid value Entered. A numeric value must be entered with an 'M' (Megabytes) or a 'G' (Gigabytes) at the end.\n\nExamples include, 100M, 10G, or 250M. The value may also not be equal to or greater than the remaining size of the VG." _LvmLvSizeErrBody="Invalid value entered.\nA numeric value must be entered with an 'M' (Megabytes) or a 'G' (Gigabytes) at the end.\nExamples include, 100M, 10G, or 250M.\nThe value may also not be equal to or greater than the remaining size of the VG!"
_LvmCompBody="Done! All Logical Volumes have been created for the Volume Group.\n\nDo you wish to view the new LVM scheme?" _LvmCompBody="Done! All Logical Volumes have been created for the Volume Group.\n\nDo you wish to view the new LVM scheme?"
_LvmDelQ="Confirm deletion of Volume Group(s) and Logical Volume(s).\n\nIf deleting a Volume Group, all Logical Volumes within will be deleted as well." _LvmDelQ="Confirm deletion of Volume Group(s) and Logical Volume(s).\n\nIf deleting a Volume Group, all Logical Volumes within will be deleted as well."
_LvmSelVGBody="Select Volume Group to delete. All Logical Volumes within will also be deleted." _LvmSelVGBody="Select Volume Group to delete. All Logical Volumes within will also be deleted."
......
...@@ -112,7 +112,7 @@ _LvmPvConfBody2="avec les partitions suivantes :" ...@@ -112,7 +112,7 @@ _LvmPvConfBody2="avec les partitions suivantes :"
_LvmPvActBody1="Création et activation du groupe de volume" _LvmPvActBody1="Création et activation du groupe de volume"
_LvmPvDoneBody1="Le groupe de volume" _LvmPvDoneBody1="Le groupe de volume"
_LvmPvDoneBody2="a été créé" _LvmPvDoneBody2="a été créé"
_LvmLvNumBody1="Utiliser [barre espace] pour sélectionner le nombre de volumes logiques (LVs) à créer dans" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Le dernier (ou seul) LV utilisera automatiquement 100% de l'espace restant dans le groupe de volume." _LvmLvNumBody2="Le dernier (ou seul) LV utilisera automatiquement 100% de l'espace restant dans le groupe de volume."
_LvmLvNameBody1="Entrer le nom du volume logique (LV) à créer.\n\nCeci ressemble à une configuration de nom / d'étiquette pour une partition." _LvmLvNameBody1="Entrer le nom du volume logique (LV) à créer.\n\nCeci ressemble à une configuration de nom / d'étiquette pour une partition."
_LvmLvNameBody2="NOTE : Ce LV utilisera automatiquement tout l'espace restant dans le groupe de volume" _LvmLvNameBody2="NOTE : Ce LV utilisera automatiquement tout l'espace restant dans le groupe de volume"
......
...@@ -110,14 +110,14 @@ _LvmPvConfBody2="bestehend aus folgenden Partitionen:" ...@@ -110,14 +110,14 @@ _LvmPvConfBody2="bestehend aus folgenden Partitionen:"
_LvmPvActBody1="Erzeuge und aktiviere Volume Group" _LvmPvActBody1="Erzeuge und aktiviere Volume Group"
_LvmPvDoneBody1="Volume Group" _LvmPvDoneBody1="Volume Group"
_LvmPvDoneBody2="wurde erzeugt." _LvmPvDoneBody2="wurde erzeugt."
_LvmLvNumBody1="Mit [Leerzeichen] die Anzahl der zu erstellenden Logical Volumes (LVs) wählen." _LvmLvNumBody1="Geben Sie die Anzahl von Logical Volumes (LVs) an für Volume Group"
_LvmLvNumBody2="Das letzte (oder das einzige) LV wird automatisch 100% des verblieben Speicherplatzes verwenden." _LvmLvNumBody2="Das letzte (oder das einzige) LV wird automatisch 100% des verbleibenden Speicherplatzes verwenden."
_LvmLvNameBody1="Geben Sie den Namen des zu erstellenden LV.\n\n Dies is der Namenvergabe für eine Partition ähnlich." _LvmLvNameBody1="Geben Sie den Namen des zu erstellenden LV.\n\n Dies is der Namenvergabe für eine Partition ähnlich."
_LvmLvNameBody2="HINWEIS: Dieses LV wird automatisch den gesamten verfügbaren Speicherplatz auf der Volume Group einnehmen." _LvmLvNameBody2="HINWEIS: Dieses LV wird automatisch den gesamten verfügbaren Speicherplatz auf der Volume Group einnehmen."
_LvmLvNameErrBody="Ungültiger Name eingegeben. Der Name eines LV muss alpha-numerisch sein, darf jedoch keine Leerzeichen einthalten oder mit '/' beginenn." _LvmLvNameErrBody="Ungültiger Name eingegeben. Der Name eines LV muss alpha-numerisch sein, darf jedoch keine Leerzeichen einthalten oder mit '/' beginenn."
_LvmLvSizeBody1="verbleibend" _LvmLvSizeBody1="verbleibend"
_LvmLvSizeBody2="Geben Sie die Größe des LV in Megabytes (M) oder Gigabytes (G) ein. Z.B. wird bei 100M ein LV von 100 Megabytes erzeugt, bei 10Gein LV von 10 Gigabytes." _LvmLvSizeBody2="Geben Sie die Größe des LV in Megabytes (M) oder Gigabytes (G) ein.\nZ.B. wird bei 100M ein LV von 100 Megabytes erzeugt, bei 10G ein LV von 10 Gigabytes."
_LvmLvSizeErrBody="Ungültigen Wert eigegeben. Ein numerischer Wert mit einem 'M' (Megabytes) oder 'G' (Gigabytes) am Ende muss eigegeben werden.\n\nBeispiele: 100M, 10G, oder 250M. Der Wert darf nicht größer oder gleich der verbleibenden Größe der VG sein." _LvmLvSizeErrBody="Ungültiger Wert eingegeben. Ein numerischer Wert mit einem 'M' (Megabytes) oder 'G' (Gigabytes) am Ende muss eigegeben werden.\n\nBeispiele: 100M, 10G, oder 250M. Der Wert darf nicht größer oder gleich der verbleibenden Größe der VG sein."
_LvmCompBody="Fertig! Alle Logical Volumes für die Volume Group wurden erzeugt.\n\nMöchte Sie sich das neue LVM-Schema anzeigen lassen?" _LvmCompBody="Fertig! Alle Logical Volumes für die Volume Group wurden erzeugt.\n\nMöchte Sie sich das neue LVM-Schema anzeigen lassen?"
_LvmDelQ="Bestätigen Sie, dass Volume Group(s) bzw. Logical Volume(s) gelöscht werden sollen.\n\n Wenn eine Volume Group gelöscht wird, werden alle darin enthaltenen Logical Volumes ebenfalls gelöscht." _LvmDelQ="Bestätigen Sie, dass Volume Group(s) bzw. Logical Volume(s) gelöscht werden sollen.\n\n Wenn eine Volume Group gelöscht wird, werden alle darin enthaltenen Logical Volumes ebenfalls gelöscht."
_LvmSelVGBody="Wählen Sie die zu löschende Volume Group. Alle darin enthaltenen Logical Volumes werden ebenfalls gelöscht." _LvmSelVGBody="Wählen Sie die zu löschende Volume Group. Alle darin enthaltenen Logical Volumes werden ebenfalls gelöscht."
......
...@@ -110,7 +110,7 @@ _LvmPvConfBody2="a következő partíciókkal:" ...@@ -110,7 +110,7 @@ _LvmPvConfBody2="a következő partíciókkal:"
_LvmPvActBody1="Kötetcsoport elkészítése és aktiválása" _LvmPvActBody1="Kötetcsoport elkészítése és aktiválása"
_LvmPvDoneBody1="A" _LvmPvDoneBody1="A"
_LvmPvDoneBody2="kötetcsoport létrehozva" _LvmPvDoneBody2="kötetcsoport létrehozva"
_LvmLvNumBody1="Használd a [Szóköz] billentyűt a következőhöz létrehozandó logikai kötet\(ek\) \(LV\) számának kiválasztásához" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Az utolsó \(vagy egyetlen\) logikai kötet automatikusan felhasználja a kötetcsoportban fennmaradó összes helyet." _LvmLvNumBody2="Az utolsó \(vagy egyetlen\) logikai kötet automatikusan felhasználja a kötetcsoportban fennmaradó összes helyet."
_LvmLvNameBody1="Írd be a létrehozandó logikai kötet \(LV\) nevét.\n\nEz olyan, mint mikor egy partíciónak nevet / címkét adunk." _LvmLvNameBody1="Írd be a létrehozandó logikai kötet \(LV\) nevét.\n\nEz olyan, mint mikor egy partíciónak nevet / címkét adunk."
_LvmLvNameBody2="MEGJEGYZÉS: Ez a logikai kötet \(LV\) automatikusan használatba veszi az összes fennmaradó helyet a kötetcsoportban." _LvmLvNameBody2="MEGJEGYZÉS: Ez a logikai kötet \(LV\) automatikusan használatba veszi az összes fennmaradó helyet a kötetcsoportban."
......
...@@ -111,7 +111,7 @@ _LvmPvConfBody2="con le seguenti partizioni:" ...@@ -111,7 +111,7 @@ _LvmPvConfBody2="con le seguenti partizioni:"
_LvmPvActBody1="Creazione ed attivazione del Gruppo di Volumi in corso" _LvmPvActBody1="Creazione ed attivazione del Gruppo di Volumi in corso"
_LvmPvDoneBody1="Il Gruppo di Volumi" _LvmPvDoneBody1="Il Gruppo di Volumi"
_LvmPvDoneBody2="è stato creato" _LvmPvDoneBody2="è stato creato"
_LvmLvNumBody1="Usaro [Spazio] per selezionare il numero di Volumi Logici da creare(LVs) in" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="L'ultimo (o l'unico) LV userà il 100% dello spazio disponibile nel Volume Group" _LvmLvNumBody2="L'ultimo (o l'unico) LV userà il 100% dello spazio disponibile nel Volume Group"
_LvmLvNameBody1="Inserisci un nome per il nuovo Volume Logico (LV).\n\nQuesta operazione equivale ad assegnare un nome / una etichetta ad una partizione." _LvmLvNameBody1="Inserisci un nome per il nuovo Volume Logico (LV).\n\nQuesta operazione equivale ad assegnare un nome / una etichetta ad una partizione."
_LvmLvNameBody2="ATTENZIONE: Questo LV utilizzerà automaticamente tutto lo spazio rimanente nel Gruppo di Volumi" _LvmLvNameBody2="ATTENZIONE: Questo LV utilizzerà automaticamente tutto lo spazio rimanente nel Gruppo di Volumi"
......
...@@ -111,7 +111,7 @@ _LvmPvConfBody2="com as seguintes partições:" ...@@ -111,7 +111,7 @@ _LvmPvConfBody2="com as seguintes partições:"
_LvmPvActBody1="Criando e activando Grupo de Volume" _LvmPvActBody1="Criando e activando Grupo de Volume"
_LvmPvDoneBody1="Grupo de Volume" _LvmPvDoneBody1="Grupo de Volume"
_LvmPvDoneBody2="foi criado" _LvmPvDoneBody2="foi criado"
_LvmLvNumBody1="Utilize a [barra de espaço] para seleccionar o número de volumes lógicos (LV) para criá-los" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="O último (ou único) LV irá automaticamente utilizar 100% do espaço restante no Grupo de Volume (VG)." _LvmLvNumBody2="O último (ou único) LV irá automaticamente utilizar 100% do espaço restante no Grupo de Volume (VG)."
_LvmLvNameBody1="Insira o nome do Volume Lógico (LV) para criar.\n\nIsto é como criar o nome '/' do rótulo para uma partição." _LvmLvNameBody1="Insira o nome do Volume Lógico (LV) para criar.\n\nIsto é como criar o nome '/' do rótulo para uma partição."
_LvmLvNameBody2="NOTA: Este Volume Lógico (LV) irá automaticamente usar todo o espaço restante no Grupo de Volume (Volume Group)" _LvmLvNameBody2="NOTA: Este Volume Lógico (LV) irá automaticamente usar todo o espaço restante no Grupo de Volume (Volume Group)"
......
...@@ -111,7 +111,7 @@ _LvmPvConfBody2="com as seguintes partições:" ...@@ -111,7 +111,7 @@ _LvmPvConfBody2="com as seguintes partições:"
_LvmPvActBody1="Criando e ativando o Grupo de Volume" _LvmPvActBody1="Criando e ativando o Grupo de Volume"
_LvmPvDoneBody1="O Grupo de Volume" _LvmPvDoneBody1="O Grupo de Volume"
_LvmPvDoneBody2="foi criado" _LvmPvDoneBody2="foi criado"
_LvmLvNumBody1="Utilize a [barra de espaço] para selecionar o número de volumes lógicos (LV) para criá-los" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="O último (ou único) LV irá automaticamente utilizar 100% do espaço restante no Grupo de Volume (VG)." _LvmLvNumBody2="O último (ou único) LV irá automaticamente utilizar 100% do espaço restante no Grupo de Volume (VG)."
_LvmLvNameBody1="Insira o nome do Volume Lógico (LV) para criar.\n\nIsto é como criar o nome '/' do rótulo para uma partição." _LvmLvNameBody1="Insira o nome do Volume Lógico (LV) para criar.\n\nIsto é como criar o nome '/' do rótulo para uma partição."
_LvmLvNameBody2="NOTA: Este Volume Lógico (LV) irá automaticamente usar todo o espaço restante no Grupo de Volume (Volume Group)" _LvmLvNameBody2="NOTA: Este Volume Lógico (LV) irá automaticamente usar todo o espaço restante no Grupo de Volume (Volume Group)"
......
...@@ -111,7 +111,7 @@ _LvmPvConfBody2="со следующими разделами:" ...@@ -111,7 +111,7 @@ _LvmPvConfBody2="со следующими разделами:"
_LvmPvActBody1="Создание и активация Группы Томов" _LvmPvActBody1="Создание и активация Группы Томов"
_LvmPvDoneBody1="Группа Томов" _LvmPvDoneBody1="Группа Томов"
_LvmPvDoneBody2="успешно создана" _LvmPvDoneBody2="успешно создана"
_LvmLvNumBody1="Используйте [Пробел] для выбора числа создаваемых Логических Томов (LVs)" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="Последний (или единственный) Логический Том (LV) автоматически использует 100% оставшегося места в Группе Томов." _LvmLvNumBody2="Последний (или единственный) Логический Том (LV) автоматически использует 100% оставшегося места в Группе Томов."
_LvmLvNameBody1="Введите название создаваемого Логического Тома (LV).\n\nЭто похоже на именование раздела или задание ему метки." _LvmLvNameBody1="Введите название создаваемого Логического Тома (LV).\n\nЭто похоже на именование раздела или задание ему метки."
_LvmLvNameBody2="ПРИМЕЧАНИЕ: Этот Логический Том (LV) автоматически использует все отавшееся место в Группе Томов" _LvmLvNameBody2="ПРИМЕЧАНИЕ: Этот Логический Том (LV) автоматически использует все отавшееся место в Группе Томов"
......
...@@ -111,7 +111,7 @@ _LvmPvConfBody2="con las siguientes particiones:" ...@@ -111,7 +111,7 @@ _LvmPvConfBody2="con las siguientes particiones:"
_LvmPvActBody1="Creando y activando grupo de volúmenes" _LvmPvActBody1="Creando y activando grupo de volúmenes"
_LvmPvDoneBody1="El grupo de volúmenes" _LvmPvDoneBody1="El grupo de volúmenes"
_LvmPvDoneBody2="se ha creado" _LvmPvDoneBody2="se ha creado"
_LvmLvNumBody1="Utilice [BarraEspaciadora] para elegir el número de volúmenes lógicos (VLs) que crear" _LvmLvNumBody1="Enter the number of Logical Volumes (LVs) to create in" # translate me !
_LvmLvNumBody2="El último (o único) VL usará de forma automática el 100% del espacio restante en el grupo de volúmenes." _LvmLvNumBody2="El último (o único) VL usará de forma automática el 100% del espacio restante en el grupo de volúmenes."
_LvmLvNameBody1="Introduzca el nombre del volumen lógico (VL) a crear.\n\nEs como asignar un nombre o una etiqueta a una partición." _LvmLvNameBody1="Introduzca el nombre del volumen lógico (VL) a crear.\n\nEs como asignar un nombre o una etiqueta a una partición."
_LvmLvNameBody2="ATENCIÓN: Este volumen lógico utilizará automáticamente todo el espacio restante del grupo de volúmenes" _LvmLvNameBody2="ATENCIÓN: Este volumen lógico utilizará automáticamente todo el espacio restante del grupo de volúmenes"
......
...@@ -563,7 +563,7 @@ luks_menu() { ...@@ -563,7 +563,7 @@ luks_menu() {
;; ;;
"$_LuksEncrypt") luks_setup && luks_default && luks_show "$_LuksEncrypt") luks_setup && luks_default && luks_show
;; ;;
"$_LuksEncryptAdv") luks_setup && luks_key_define && luks_show "$_LuksEncryptAdv") luks_setup && luks_key_define && luks_show
;; ;;
*) return 0 *) return 0
;; ;;
...@@ -603,7 +603,7 @@ lvm_create() { ...@@ -603,7 +603,7 @@ lvm_create() {
PARTITIONS=$(echo $PARTITIONS | sed 's/M\|G\|T/& off/g') PARTITIONS=$(echo $PARTITIONS | sed 's/M\|G\|T/& off/g')
# Name the Volume Group # Name the Volume Group
DIALOG " $_LvmCreateVG " --inputbox "\n$_LvmNameVgBody\n " 0 0 "" 2>${ANSWER} || return 0 DIALOG " $_LvmCreateVG " --inputbox "\n$_LvmNameVgBody\n " 0 0 2>${ANSWER} || return 0
LVM_VG=$(cat ${ANSWER}) LVM_VG=$(cat ${ANSWER})
# Loop while the Volume Group name starts with a "/", is blank, has spaces, or is already being used # Loop while the Volume Group name starts with a "/", is blank, has spaces, or is already being used
...@@ -614,18 +614,22 @@ lvm_create() { ...@@ -614,18 +614,22 @@ lvm_create() {
done done
# Select the partition(s) for the Volume Group # Select the partition(s) for the Volume Group
DIALOG " $_LvmCreateVG " --checklist "\n$_LvmPvSelBody\n\n$_UseSpaceBar\n " 0 0 12 ${PARTITIONS} 2>${ANSWER} || return 0 echo "" > $ANSWER
[[ $(cat ${ANSWER}) != "" ]] && VG_PARTS=$(cat ${ANSWER}) || return 0 while [[ $(cat ${ANSWER}) == "" ]]; do
DIALOG " $_LvmCreateVG " --checklist "\n$_LvmPvSelBody\n\n$_UseSpaceBar\n " 0 0 12 ${PARTITIONS} 2>${ANSWER} || return 0
done
VG_PARTS=$(cat ${ANSWER})
# Once all the partitions have been selected, show user. On confirmation, use it/them in 'vgcreate' command. # Once all the partitions have been selected, show user. On confirmation, use it/them in 'vgcreate' command.
# Also determine the size of the VG, to use for creating LVs for it. # Also determine the size of the VG, to use for creating LVs for it.
DIALOG " $_LvmCreateVG " --yesno "\n$_LvmPvConfBody1${LVM_VG} $_LvmPvConfBody2${VG_PARTS}\n " 0 0 DIALOG " $_LvmCreateVG " --yesno "\n$_LvmPvConfBody1 [${LVM_VG}] $_LvmPvConfBody2\n${VG_PARTS}\n " 0 0
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
DIALOG " $_LvmCreateVG " --infobox "\n$_LvmPvActBody1${LVM_VG}.$_PlsWaitBody\n " 0 0 DIALOG " $_LvmCreateVG " --infobox "\n$_LvmPvActBody1 [${LVM_VG}].\n$_PlsWaitBody\n " 0 0
sleep 1 sleep 1
vgcreate -f ${LVM_VG} ${VG_PARTS} >/dev/null 2>$ERR vgcreate -f ${LVM_VG} ${VG_PARTS} >/dev/null
check_for_error "vgcreate -f ${LVM_VG} ${VG_PARTS}" "$?" check_for_error "vgcreate -f ${LVM_VG} ${VG_PARTS}"
# Once created, get size and size type for display and later number-crunching for lv creation # Once created, get size and size type for display and later number-crunching for lv creation
VG_SIZE=$(vgdisplay $LVM_VG | grep 'VG Size' | awk '{print $3}' | sed 's/\..*//') VG_SIZE=$(vgdisplay $LVM_VG | grep 'VG Size' | awk '{print $3}' | sed 's/\..*//')
...@@ -634,7 +638,7 @@ lvm_create() { ...@@ -634,7 +638,7 @@ lvm_create() {
# Convert the VG size into GB and MB. These variables are used to keep tabs on space available and remaining # Convert the VG size into GB and MB. These variables are used to keep tabs on space available and remaining
[[ ${VG_SIZE_TYPE:0:1} == "G" ]] && LVM_VG_MB=$(( VG_SIZE * 1000 )) || LVM_VG_MB=$VG_SIZE [[ ${VG_SIZE_TYPE:0:1} == "G" ]] && LVM_VG_MB=$(( VG_SIZE * 1000 )) || LVM_VG_MB=$VG_SIZE
DIALOG " $_LvmCreateVG " --msgbox "\n$_LvmPvDoneBody1 '${LVM_VG}' $_LvmPvDoneBody2 (${VG_SIZE} ${VG_SIZE_TYPE}).\n " 0 0 || return 0 DIALOG " $_LvmCreateVG " --msgbox "\n$_LvmPvDoneBody1 [${LVM_VG}] (${VG_SIZE} ${VG_SIZE_TYPE}) $_LvmPvDoneBody2.\n " 0 0 || return 0
fi fi
# #
...@@ -642,10 +646,14 @@ lvm_create() { ...@@ -642,10 +646,14 @@ lvm_create() {
# #
# Specify number of Logical volumes to create. # Specify number of Logical volumes to create.
DIALOG " $_LvmCreateVG " --radiolist "\n$_LvmLvNumBody1 ${LVM_VG}. $_LvmLvNumBody2\n " 0 0 9 \ DIALOG " $_LvmCreateVG " --inputbox "\n$_LvmLvNumBody1 [${LVM_VG}]. $_LvmLvNumBody2\n " 0 0 2>${ANSWER}
"1" "-" off "2" "-" off "3" "-" off "4" "-" off "5" "-" off "6" "-" off "7" "-" off "8" "-" off "9" "-" off 2>${ANSWER}
[[ $(cat ${ANSWER}) == "" ]] && lvm_menu || NUMBER_LOGICAL_VOLUMES=$(cat ${ANSWER}) # repeat if answer is not a number
while [[ $(cat ${ANSWER}) != ?(-)+([0-9]) ]]; do
DIALOG " $_ErrTitle " --inputbox "\n$_LvmLvNumBody1 [${LVM_VG}]. $_LvmLvNumBody2\n " 0 0 2>${ANSWER}
done
NUMBER_LOGICAL_VOLUMES=$(cat ${ANSWER})
# Loop while the number of LVs is greater than 1. This is because the size of the last LV is automatic. # Loop while the number of LVs is greater than 1. This is because the size of the last LV is automatic.
while [[ $NUMBER_LOGICAL_VOLUMES -gt 1 ]]; do while [[ $NUMBER_LOGICAL_VOLUMES -gt 1 ]]; do
...@@ -659,16 +667,16 @@ lvm_create() { ...@@ -659,16 +667,16 @@ lvm_create() {
LVM_LV_NAME=$(cat ${ANSWER}) LVM_LV_NAME=$(cat ${ANSWER})
done done
DIALOG " $_LvmCreateVG (LV:$NUMBER_LOGICAL_VOLUMES) " --inputbox "\n${LVM_VG}: ${VG_SIZE}${VG_SIZE_TYPE} (${LVM_VG_MB}MB \ DIALOG " $_LvmCreateVG (LV:$NUMBER_LOGICAL_VOLUMES) " --inputbox \
$_LvmLvSizeBody1).$_LvmLvSizeBody2\n " 0 0 "" 2>${ANSWER} || return 0 "\n[${LVM_VG}]: ${VG_SIZE}${VG_SIZE_TYPE} - (${LVM_VG_MB}MB $_LvmLvSizeBody1).\n\n$_LvmLvSizeBody2\n " 0 0 "" 2>${ANSWER} || return 0
LVM_LV_SIZE=$(cat ${ANSWER}) LVM_LV_SIZE=$(cat ${ANSWER})
check_lv_size check_lv_size
# Loop while an invalid value is entered. # Loop while an invalid value is entered.
while [[ $LV_SIZE_INVALID -eq 1 ]]; do while [[ $LV_SIZE_INVALID -eq 1 ]]; do
DIALOG " $_ErrTitle " --msgbox "\n$_LvmLvSizeErrBody\n " 0 0 DIALOG " $_ErrTitle " --msgbox "\n$_LvmLvSizeErrBody\n " 0 0
DIALOG " $_LvmCreateVG (LV:$NUMBER_LOGICAL_VOLUMES) " --inputbox "\n${LVM_VG}: ${VG_SIZE}${VG_SIZE_TYPE} \ DIALOG " $_LvmCreateVG (LV:$NUMBER_LOGICAL_VOLUMES) " --inputbox \
(${LVM_VG_MB}MB $_LvmLvSizeBody1).$_LvmLvSizeBody2\n " 0 0 "" 2>${ANSWER} || return 0 "\n[${LVM_VG}]: ${VG_SIZE}${VG_SIZE_TYPE} - (${LVM_VG_MB}MB $_LvmLvSizeBody1).\n\n$_LvmLvSizeBody2\n " 0 0 "" 2>${ANSWER} || return 0
LVM_LV_SIZE=$(cat ${ANSWER}) LVM_LV_SIZE=$(cat ${ANSWER})
check_lv_size check_lv_size
done done
...@@ -676,7 +684,7 @@ lvm_create() { ...@@ -676,7 +684,7 @@ lvm_create() {
# Create the LV # Create the LV
lvcreate -L ${LVM_LV_SIZE} ${LVM_VG} -n ${LVM_LV_NAME} 2>$ERR lvcreate -L ${LVM_LV_SIZE} ${LVM_VG} -n ${LVM_LV_NAME} 2>$ERR
check_for_error "lvcreate -L ${LVM_LV_SIZE} ${LVM_VG} -n ${LVM_LV_NAME}" "$?" check_for_error "lvcreate -L ${LVM_LV_SIZE} ${LVM_VG} -n ${LVM_LV_NAME}" "$?"
DIALOG " $_LvmCreateVG (LV:$NUMBER_LOGICAL_VOLUMES) " --msgbox "\n$_Done\n\nLV ${LVM_LV_NAME} (${LVM_LV_SIZE}) $_LvmPvDoneBody2.\n " 0 0 DIALOG " $_LvmCreateVG (LV:$NUMBER_LOGICAL_VOLUMES) " --msgbox "\nLV ${LVM_LV_NAME} (${LVM_LV_SIZE}) $_LvmPvDoneBody2.\n " 0 0
NUMBER_LOGICAL_VOLUMES=$(( NUMBER_LOGICAL_VOLUMES - 1 )) NUMBER_LOGICAL_VOLUMES=$(( NUMBER_LOGICAL_VOLUMES - 1 ))
done done
...@@ -768,12 +776,18 @@ lvm_del_vg() { ...@@ -768,12 +776,18 @@ lvm_del_vg() {
# if confirmation given, delete # if confirmation given, delete
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
check_for_error "delete lvm-VG $(cat ${ANSWER})" vgremove -f $(cat ${ANSWER}) 2>$ERR
vgremove -f $(cat ${ANSWER}) >/dev/null 2>&1 check_for_error "delete lvm-VG $(cat ${ANSWER})" $?
fi fi
} }
lvm_del_all() { lvm_del_all() {
# check if VG exist at all
if [[ $(lvs) == "" ]]; then
DIALOG " $_ErrTitle " --msgbox "\n$_LvmVGErr\n " 0 0
return 0
fi
LVM_PV=$(pvs -o pv_name --noheading 2>/dev/null) LVM_PV=$(pvs -o pv_name --noheading 2>/dev/null)
LVM_VG=$(vgs -o vg_name --noheading 2>/dev/null) LVM_VG=$(vgs -o vg_name --noheading 2>/dev/null)
LVM_LV=$(lvs -o vg_name,lv_name --noheading --separator - 2>/dev/null) LVM_LV=$(lvs -o vg_name,lv_name --noheading --separator - 2>/dev/null)
...@@ -784,39 +798,47 @@ lvm_del_all() { ...@@ -784,39 +798,47 @@ lvm_del_all() {
# if confirmation given, delete # if confirmation given, delete
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
for i in ${LVM_LV}; do for i in ${LVM_LV}; do
check_for_error "remove LV ${i}" lvremove -f /dev/mapper/${i} 2>$ERR
lvremove -f /dev/mapper/${i} >/dev/null 2>&1 check_for_error "remove LV ${i}" $?
done done
for i in ${LVM_VG}; do for i in ${LVM_VG}; do
check_for_error "remove VG ${i}" vgremove -f ${i} 2>$ERR
vgremove -f ${i} >/dev/null 2>&1 check_for_error "remove VG ${i}" $?
done done
for i in ${LV_PV}; do for i in ${LV_PV}; do
check_for_error "remove LV-PV ${i}" pvremove -f ${i} 2>$ERR
pvremove -f ${i} >/dev/null 2>&1 check_for_error "remove LV-PV ${i}" $?
done done
fi fi
} }
lvm_menu() { lvm_menu() {
DIALOG " $_PrepLVM $_PrepLVM2 " --infobox "\n$_PlsWaitBody\n " 0 0 declare -i loopmenu=1
sleep 1 while ((loopmenu)); do
lvm_detect DIALOG " $_PrepLVM $_PrepLVM2 " --infobox "\n$_PlsWaitBody\n " 0 0
sleep 1
DIALOG " $_PrepLVM $_PrepLVM2 " --menu "\n$_LvmMenu\n " 0 0 4 \ lvm_detect
"$_LvmCreateVG" "vgcreate -f, lvcreate -L -n" \
"$_LvmDelVG" "vgremove -f" \ DIALOG " $_PrepLVM $_PrepLVM2 " --menu "\n$_LvmMenu\n " 0 0 4 \
"$_LvMDelAll" "lvrmeove, vgremove, pvremove -f" \ "$_LvmCreateVG" "vgcreate -f, lvcreate -L -n" \
"$_Back" "-" 2>${ANSWER} "$_LvmDelVG" "vgremove -f" \
"$_LvMDelAll" "lvrmeove, vgremove, pvremove -f" \
case $(cat ${ANSWER}) in "$_Back" "-" 2>${ANSWER}
"$_LvmCreateVG") lvm_create ;;
"$_LvmDelVG") lvm_del_vg ;; case $(cat ${ANSWER}) in
"$_LvMDelAll") lvm_del_all ;; "$_LvmCreateVG") lvm_create
*) return 0 ;; ;;
esac "$_LvmDelVG") lvm_del_vg
;;
"$_LvMDelAll") lvm_del_all
;;
*) loopmenu=0
return 0
;;
esac
done
} }
mount_partitions() { mount_partitions() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment