lvm sysinst patch
Adam Hamsik <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.installation |
|---|---|
| Message-ID | <[email protected]> |
Hi folks,
I have done some initial work on integration of our LVM into the
sysinst look at attached patch. I think that best way how to add
support for LVM to sysinst is add new entry to Utility menu which will
execute lvm in a shell mode. User can then set up his LV disks, create
Physical Volumes and Volume Groups. We will need /sbin/lvm
binary on install disk and dm driver in installation kernel. After
exit from lvm shell user can choose created logical disks and install
e.g. /usr on them except / (we do not support / on the Logical Volume).
I found that sysinst doesn't detect LV's properly because DISK_NAMES
value doesn't match them. We should probably find way how to get list
of all disk devices with out hardcoding their name in sysinst code,
because LV can have user defined name. LV's are place in this
directory structure /dev/{volume_group_name}/{lv_name}.
I really appreciate to hear any feedback from you, even about our new
sysinst implementation.
Any comments ?
Regards
Adam.
sysinst.diff
(application/octet-stream, 4.7 KB)
? sysinst.diff
? utils/sysinst/cscope.out
? utils/sysinst/sysinst.diff
Index: i386/ramdisks/ramdisk-big/list
===================================================================
RCS file: /cvsroot/src/distrib/i386/ramdisks/ramdisk-big/list,v
retrieving revision 1.2
diff -u -p -r1.2 list
--- i386/ramdisks/ramdisk-big/list 18 Nov 2006 16:09:57 -0000 1.2
+++ i386/ramdisks/ramdisk-big/list 4 Jan 2009 13:34:15 -0000
@@ -27,6 +27,8 @@ PROG usr/sbin/installboot
PROG usr/sbin/wiconfig
+PROG external/gpl2/sbin/lvm
+
SPECIAL dhclient srcdir distrib/utils/x_dhclient
# various files that we need in /etc for the install
Index: utils/sysinst/menus.mi
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/menus.mi,v
retrieving revision 1.33
diff -u -p -r1.33 menus.mi
--- utils/sysinst/menus.mi 8 Aug 2008 02:54:06 -0000 1.33
+++ utils/sysinst/menus.mi 4 Jan 2009 13:34:19 -0000
@@ -165,6 +165,8 @@ menu utility, title MSG_NetBSD_VERSION_U
display action { toplevel(); };
option MSG_Run_bin_sh,
action (endwin) { system("/bin/sh"); };
+ option MSG_Run_sbin_lvm,
+ action (endwin) { system("/sbin/lvm"); };
option MSG_Set_timezone,
action { set_timezone(); };
option MSG_Configure_network,
Index: utils/sysinst/msg.mi.de
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/msg.mi.de,v
retrieving revision 1.46
diff -u -p -r1.46 msg.mi.de
--- utils/sysinst/msg.mi.de 21 Dec 2008 11:02:42 -0000 1.46
+++ utils/sysinst/msg.mi.de 4 Jan 2009 13:34:21 -0000
@@ -932,6 +932,7 @@ message Reboot_the_computer {Computer ne
message Utility_menu {Extras}
message NetBSD_VERSION_Utilities {NetBSD-@@VERSION@@ Extras}
message Run_bin_sh {Ausführen von /bin/sh}
+message Run_sbin_lvm {Ausführen von /sbin/lvm}
message Set_timezone {Setzen der Zeitzone}
message Configure_network {Netzwerkkonfiguration}
message Partition_a_disk {Partitionieren eines Laufwerks}
Index: utils/sysinst/msg.mi.en
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/msg.mi.en,v
retrieving revision 1.152
diff -u -p -r1.152 msg.mi.en
--- utils/sysinst/msg.mi.en 21 Dec 2008 11:02:42 -0000 1.152
+++ utils/sysinst/msg.mi.en 4 Jan 2009 13:34:22 -0000
@@ -878,6 +878,7 @@ message Reboot_the_computer {Reboot the
message Utility_menu {Utility menu}
message NetBSD_VERSION_Utilities {NetBSD-@@VERSION@@ Utilities}
message Run_bin_sh {Run /bin/sh}
+message Run_sbin_lvm {Run /sbin/lvm}
message Set_timezone {Set timezone}
message Configure_network {Configure network}
message Partition_a_disk {Partition a disk}
Index: utils/sysinst/msg.mi.es
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/msg.mi.es,v
retrieving revision 1.23
diff -u -p -r1.23 msg.mi.es
--- utils/sysinst/msg.mi.es 21 Dec 2008 11:02:42 -0000 1.23
+++ utils/sysinst/msg.mi.es 4 Jan 2009 13:34:22 -0000
@@ -902,6 +902,7 @@ message Reboot_the_computer {Reiniciar l
message Utility_menu {Menú de utilidades}
message NetBSD_VERSION_Utilities {Utilidades de NetBSD-@@VERSION@@}
message Run_bin_sh {Ejecutar /bin/sh}
+message Run_sbin_lvm {Ejecutar /sbin/lvm}
message Set_timezone {Establecer la zona horaria}
message Configure_network {Configurar la red}
message Partition_a_disk {Particionar un disco}
Index: utils/sysinst/msg.mi.fr
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/msg.mi.fr,v
retrieving revision 1.103
diff -u -p -r1.103 msg.mi.fr
--- utils/sysinst/msg.mi.fr 21 Dec 2008 11:02:42 -0000 1.103
+++ utils/sysinst/msg.mi.fr 4 Jan 2009 13:34:23 -0000
@@ -966,6 +966,7 @@ message Reboot_the_computer {Redémarrer
message Utility_menu {Utilitaire}
message NetBSD_VERSION_Utilities {Utilitaires NetBSD-@@VERSION@@}
message Run_bin_sh {Exécuter /bin/sh}
+message Run_sbin_lvm {Exécuter /sbin/lvm}
message Set_timezone {Configurer le fuseau horaire}
message Configure_network {Configurer le réseau}
message Partition_a_disk {Partitioner un disque}
Index: utils/sysinst/msg.mi.pl
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/msg.mi.pl,v
retrieving revision 1.62
diff -u -p -r1.62 msg.mi.pl
--- utils/sysinst/msg.mi.pl 21 Dec 2008 11:02:42 -0000 1.62
+++ utils/sysinst/msg.mi.pl 4 Jan 2009 13:34:24 -0000
@@ -868,6 +868,7 @@ message Reboot_the_computer {Zrestartuj
message Utility_menu {Menu Narzedziowe}
message NetBSD_VERSION_Utilities {Narzedzia NetBSD-@@VERSION@@}
message Run_bin_sh {Uruchom /bin/sh}
+message Run_sbin_lvm {Uruchom /bin/lvm}
message Set_timezone {Ustaw strefe czasowa}
message Configure_network {Skonfiguruj siec}
message Partition_a_disk {Skonfiguruj dysk}