[PC-BSD Commits] r6480 - in pcbsd/trunk/pc-sysinstall: . backend-partmanager
svn at pcbsd.org
svn at pcbsd.org
Wed Mar 31 11:45:30 PDT 2010
Author: kris
Date: 2010-03-31 11:45:30 -0700 (Wed, 31 Mar 2010)
New Revision: 6480
Added:
pcbsd/trunk/pc-sysinstall/backend-partmanager/
pcbsd/trunk/pc-sysinstall/backend-partmanager/create-part.sh
pcbsd/trunk/pc-sysinstall/backend-partmanager/delete-part.sh
Modified:
pcbsd/trunk/pc-sysinstall/pc-sysinstall
Log:
Updated pc-sysinstall, cleaned up some function listings, and added new backend options to create / delete MBR
slices with gpart on the fly
Property changes on: pcbsd/trunk/pc-sysinstall/backend-partmanager/create-part.sh
___________________________________________________________________
Added: svn:executable
+ *
Property changes on: pcbsd/trunk/pc-sysinstall/backend-partmanager/delete-part.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: pcbsd/trunk/pc-sysinstall/pc-sysinstall
===================================================================
--- pcbsd/trunk/pc-sysinstall/pc-sysinstall 2010-03-31 14:44:18 UTC (rev 6479)
+++ pcbsd/trunk/pc-sysinstall/pc-sysinstall 2010-03-31 18:45:30 UTC (rev 6480)
@@ -27,6 +27,9 @@
BACKEND="${PROGDIR}/backend"
export BACKEND
+PARTMANAGERDIR="${PROGDIR}/backend-partmanager"
+export PARTMANAGERDIR
+
# Start by sourcing our conf file
if [ -e "${PROGDIR}/conf/pc-sysinstall.conf" ]
then
@@ -78,85 +81,93 @@
start-autoinstall) ${BACKEND}/startautoinstall.sh ${2}
;;
- # The user is wanting to query which disks are available
- disk-list) ${QUERYDIR}/disk-list.sh
+ # The user is wanting to create a new partition
+ create-part) ${PARTMANAGERDIR}/create-part.sh "${2}" "${3}"
;;
-
- # The user is wanting to query a disk's partitions
- disk-part) ${QUERYDIR}/disk-part.sh ${2}
+
+ # The user is wanting to delete an existing partition
+ delete-part) ${PARTMANAGERDIR}/delete-part.sh "${2}"
;;
-
- # The user is wanting to query a disk's information
- disk-info) ${QUERYDIR}/disk-info.sh ${2}
- ;;
-
+
# The user is wanting to check if we are on a laptop or desktop
detect-laptop) ${QUERYDIR}/detect-laptop.sh
;;
+
+ # The user is wanting to see what nics are available on the system
+ detect-nics) ${QUERYDIR}/detect-nics.sh
+ ;;
# The user is wanting to check if we are in vmware
detect-vmware) ${QUERYDIR}/detect-vmware.sh
;;
-
- # The user is wanting to see what nics are available on the system
- detect-nics) ${QUERYDIR}/detect-nics.sh
+
+ # The user is wanting to query a disk's information
+ disk-info) ${QUERYDIR}/disk-info.sh ${2}
;;
+
+ # The user is wanting to query which disks are available
+ disk-list) ${QUERYDIR}/disk-list.sh
+ ;;
- # The user is wanting to test if the network is up and working
- test-netup) ${QUERYDIR}/test-netup.sh
+ # The user is wanting to query a disk's partitions
+ disk-part) ${QUERYDIR}/disk-part.sh ${2}
;;
- # Run script which determines if we are booted from install media, or on disk
- test-live) ${QUERYDIR}/test-live.sh
+ # Function allows the setting of networking by a calling front-end
+ enable-net) ${QUERYDIR}/enable-net.sh "${2}" "${3}" "${4}" "${5}" "${6}" "${7}"
;;
- # Requested a list of keyboard layouts that xorg supports
- xkeyboard-layouts) ${QUERYDIR}/xkeyboard-layouts.sh
+ # Function which lists components available
+ list-components) ${QUERYDIR}/list-components.sh
;;
-
- # Requested a list of keyboard models that xorg supports
- xkeyboard-models) ${QUERYDIR}/xkeyboard-models.sh
+
+ # Function which lists available backups on a rsync/ssh server
+ list-rsync-backups) ${QUERYDIR}/list-rsync-backups.sh "${2}" "${3}" "${4}"
;;
-
- # Requested a list of keyboard variants that xorg supports
- xkeyboard-variants) ${QUERYDIR}/xkeyboard-variants.sh
+
+ # Function which lists timezones available
+ list-tzones) ${QUERYDIR}/list-tzones.sh
;;
# Requested a list of languages this install will support
query-langs) ${QUERYDIR}/query-langs.sh
;;
- # The user is wanting to get a list of partitions available to be updated / repaired
- update-part-list) ${QUERYDIR}/update-part-list.sh
+ # Function which creates a error report, and mails it to the specified address
+ send-logs) ${QUERYDIR}/send-logs.sh ${2}
;;
# Function which allows setting up of SSH keys
setup-ssh-keys) ${QUERYDIR}/setup-ssh-keys.sh "${2}" "${3}" "${4}"
;;
-
- # Function allows the setting of networking by a calling front-end
- enable-net) ${QUERYDIR}/enable-net.sh "${2}" "${3}" "${4}" "${5}" "${6}" "${7}"
+
+ # Function which lists the real memory of the system in MB
+ sys-mem) ${QUERYDIR}/sys-mem.sh
;;
- # Function which lists available backups on a rsync/ssh server
- list-rsync-backups) ${QUERYDIR}/list-rsync-backups.sh "${2}" "${3}" "${4}"
+ # Run script which determines if we are booted from install media, or on disk
+ test-live) ${QUERYDIR}/test-live.sh
;;
-
- # Function which lists components available
- list-components) ${QUERYDIR}/list-components.sh
+
+ # The user is wanting to test if the network is up and working
+ test-netup) ${QUERYDIR}/test-netup.sh
;;
- # Function which lists timezones available
- list-tzones) ${QUERYDIR}/list-tzones.sh
+ # The user is wanting to get a list of partitions available to be updated / repaired
+ update-part-list) ${QUERYDIR}/update-part-list.sh
;;
- # Function which lists the real memory of the system in MB
- sys-mem) ${QUERYDIR}/sys-mem.sh
+ # Requested a list of keyboard layouts that xorg supports
+ xkeyboard-layouts) ${QUERYDIR}/xkeyboard-layouts.sh
;;
-
- # Function which creates a error report, and mails it to the specified address
- send-logs) ${QUERYDIR}/send-logs.sh ${2}
+
+ # Requested a list of keyboard models that xorg supports
+ xkeyboard-models) ${QUERYDIR}/xkeyboard-models.sh
;;
+
+ # Requested a list of keyboard variants that xorg supports
+ xkeyboard-variants) ${QUERYDIR}/xkeyboard-variants.sh
+ ;;
*) echo "Unknown Command: ${1}"
exit 1 ;;
More information about the Commits
mailing list