usr/src/cmd/auto-install/auto_install.h
author Keith Mitchell <keith.mitchell@oracle.com>
Mon, 30 Aug 2010 15:52:14 -0700
changeset 869 424db5e50fb5
parent 867 cfbbedf29419
child 870 1cd031050724
permissions -rw-r--r--
GK: Backed out changeset cfbbedf29419 for build 147
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     1
/*
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     2
 * CDDL HEADER START
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     3
 *
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     4
 * The contents of this file are subject to the terms of the
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     5
 * Common Development and Distribution License (the "License").
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     6
 * You may not use this file except in compliance with the License.
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     7
 *
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     8
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
     9
 * or http://www.opensolaris.org/os/licensing.
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    10
 * See the License for the specific language governing permissions
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    11
 * and limitations under the License.
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    12
 *
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    13
 * When distributing Covered Code, include this CDDL HEADER in each
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    14
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    15
 * If applicable, add the following below this CDDL HEADER, with the
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    16
 * fields enclosed by brackets "[]" replaced with your own identifying
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    17
 * information: Portions Copyright [yyyy] [name of copyright owner]
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    18
 *
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    19
 * CDDL HEADER END
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    20
 */
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    21
/*
822
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
    22
 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    23
 */
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    24
315
78d36732cf38 4030 auto-install should select a default target if a user defined target is
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 311
diff changeset
    25
#ifndef _AUTO_INSTALL_H
78d36732cf38 4030 auto-install should select a default target if a user defined target is
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 311
diff changeset
    26
#define	_AUTO_INSTALL_H
78d36732cf38 4030 auto-install should select a default target if a user defined target is
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 311
diff changeset
    27
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    28
#ifdef __cplusplus
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    29
extern "C" {
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    30
#endif
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    31
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    32
#include <Python.h>
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
    33
#include <sys/param.h>
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
    34
#include "td_lib.h"
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
    35
#include "td_api.h"
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    36
#include "orchestrator_api.h"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    37
#include "ti_api.h"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    38
#include "transfermod.h"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    39
#include "ls_api.h"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    40
461
c51e3b699738 6556 AI should provide an option for automatic reboot after an install
Jan Damborsky <jan.damborsky@sun.com>
parents: 460
diff changeset
    41
/* AI engine exit codes */
c51e3b699738 6556 AI should provide an option for automatic reboot after an install
Jan Damborsky <jan.damborsky@sun.com>
parents: 460
diff changeset
    42
#define	AI_EXIT_SUCCESS		0	/* success - control passed to user */
c51e3b699738 6556 AI should provide an option for automatic reboot after an install
Jan Damborsky <jan.damborsky@sun.com>
parents: 460
diff changeset
    43
#define	AI_EXIT_AUTO_REBOOT	64	/* success - auto reboot enabled */
495
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    44
#define	AI_EXIT_FAILURE		1	/* general failure */
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    45
#define	AI_EXIT_FAILURE_AIM	2	/* failure-invalid manifest provided */
461
c51e3b699738 6556 AI should provide an option for automatic reboot after an install
Jan Damborsky <jan.damborsky@sun.com>
parents: 460
diff changeset
    46
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
    47
#define	AUTO_INSTALL_SUCCESS	0
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
    48
#define	AUTO_INSTALL_EMPTY_LIST	1	/* list of packages is empty */
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
    49
#define	AUTO_INSTALL_FAILURE	-1
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
    50
#define	AUTO_TD_SUCCESS		0
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
    51
#define	AUTO_TD_FAILURE		-1
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    52
311
7ec66097ab2e 4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents: 272
diff changeset
    53
#define	INSTALLED_ROOT_DIR	"/a"
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    54
#define	AUTO_UNKNOWN_STRING	"unknown"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    55
#define	AUTO_DBGLVL_INFO	LS_DBGLVL_INFO
414
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
    56
#define	AUTO_DBGLVL_WARN	LS_DBGLVL_WARN
311
7ec66097ab2e 4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents: 272
diff changeset
    57
#define	AUTO_DBGLVL_ERR		LS_DBGLVL_ERR
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    58
311
7ec66097ab2e 4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents: 272
diff changeset
    59
#define	AUTO_VALID_MANIFEST	0
7ec66097ab2e 4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents: 272
diff changeset
    60
#define	AUTO_INVALID_MANIFEST	-1
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    61
#define	SC_MANIFEST_BEGIN_MARKER	"<?xml version='1.0'?>"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    62
#define	SC_MANIFEST_END_MARKER		"</service_bundle>"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
    63
#define	SC_EMBEDDED_BEGIN_MARKER	"<sc_embedded_manifest"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
    64
#define	SC_EMBEDDED_END_MARKER		"</sc_embedded_manifest>"
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    65
#define	SC_PROPVAL_MARKER		"<propval"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    66
#define	AUTO_PROPERTY_ROOTPASS		"rootpass"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    67
#define	AUTO_PROPERTY_TIMEZONE		"timezone"
477
04c667d64a87 4629 Cannot set timezone in automated installation
William Schumann <william.schumann@sun.com>
parents: 471
diff changeset
    68
#define	AUTO_PROPERTY_HOSTNAME		"hostname"
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    69
#define	KEYWORD_VALUE			"value"
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
    70
#define	KEYWORD_SIZE		256
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
    71
#define	VALUE_SIZE		256
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
    72
#define	AUTO_MAX_ACTION_LEN	32	/* delete, create, preserve... */
846
70dd9e819f25 15723 - Teach AI to use new SMF based System Configuration framework for configuring user and root accounts
Jan Damborsky <jan.damborsky@sun.com>
parents: 822
diff changeset
    73
#define	MAX_SHELLCMD_LEN	2048
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    74
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    75
/*
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    76
 * File that lists which packages need to be installed
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    77
 */
495
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    78
#define	AUTO_INSTALL_PKG_LIST_FILE	"/tmp/install.pkg.list"
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    79
/*
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    80
 * File that lists which packages will be removed
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    81
 * from installed system
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    82
 */
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    83
#define	AUTO_REMOVE_PKG_LIST_FILE	"/tmp/remove.pkg.list"
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
    84
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
    85
#define	AI_MANIFEST_FILE	"/tmp/ai.xml"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
    86
#define	AI_MANIFEST_SCHEMA	"/tmp/ai.dtd"
311
7ec66097ab2e 4074 AI preserve slice will not work if install slice is not specified
William Schumann <william.schumann@sun.com>
parents: 272
diff changeset
    87
#define	SC_MANIFEST_FILE	"/tmp/sc_manifest.xml"
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    88
846
70dd9e819f25 15723 - Teach AI to use new SMF based System Configuration framework for configuring user and root accounts
Jan Damborsky <jan.damborsky@sun.com>
parents: 822
diff changeset
    89
/* Script for converting legacy System Configuration manifest to new format */
70dd9e819f25 15723 - Teach AI to use new SMF based System Configuration framework for configuring user and root accounts
Jan Damborsky <jan.damborsky@sun.com>
parents: 822
diff changeset
    90
#define	SC_CONVERSION_SCRIPT	"/usr/lib/install/sc_conv.ksh"
70dd9e819f25 15723 - Teach AI to use new SMF based System Configuration framework for configuring user and root accounts
Jan Damborsky <jan.damborsky@sun.com>
parents: 822
diff changeset
    91
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    92
#define	TEXT_DOMAIN		"SUNW_INSTALL_AUTOINSTALL"
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
    93
409
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
    94
#define	CONVERT_UNITS_TO_TEXT(units) \
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
    95
	((units) == AI_SIZE_UNITS_MEGABYTES ? "megabytes": \
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
    96
	((units) == AI_SIZE_UNITS_GIGABYTES ? "gigabytes": \
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
    97
	((units) == AI_SIZE_UNITS_TERABYTES ? "terabytes": \
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
    98
	((units) == AI_SIZE_UNITS_SECTORS ? "sectors": \
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
    99
	"(unknown)"))))
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   100
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   101
#define MB_TO_SECTORS	((uint64_t)2048)
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   102
#define GB_TO_MB	((uint64_t)1024)
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   103
#define TB_TO_GB	((uint64_t)1024)
471
5a23ff9e7f8c 7219 Automated Installer reports slice customization in manifest where none exist
William Schumann <william.schumann@sun.com>
parents: 461
diff changeset
   104
495
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   105
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   106
/*
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   107
 * DTD schema nodepaths - see ai.dtd
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   108
 */
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   109
#define	AIM_TARGET_DISK_KEYWORD "auto_install/ai_instance/target/target_device/disk/disk_keyword/key"
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   110
#define	AIM_TARGET_DEVICE_NAME "auto_install/ai_instance/target/target_device/disk/disk_name[name_type='ctd']/name"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   111
#define	AIM_TARGET_DEVICE_BOOT_DISK "boot_disk"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   112
#define	AIM_TARGET_DEVICE_SELECT_VOLUME_NAME \
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   113
	"auto_install/ai_instance/target/target_device/disk/disk_name[name_type='volid']/name"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   114
#define	AIM_TARGET_DEVICE_SELECT_DEVICE_ID \
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   115
	"auto_install/ai_instance/target/target_device/disk/disk_name[name_type='devid']/name"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   116
#define	AIM_TARGET_DEVICE_SELECT_DEVICE_PATH \
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   117
	"auto_install/ai_instance/target/target_device/disk/disk_name[name_type='devpath']/name"
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   118
#define	AIM_TARGET_DEVICE_TYPE "auto_install/ai_instance/target/target_device/disk/disk_prop/dev_type"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   119
#define	AIM_TARGET_DEVICE_SIZE	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   120
	"auto_install/ai_instance/target/target_device/disk/disk_prop/dev_size"
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   121
#define	AIM_TARGET_DEVICE_VENDOR	\
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   122
	"auto_install/ai_instance/target/target_device/disk/disk_prop/dev_vendor"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   123
#define	AIM_TARGET_DEVICE_USE_SOLARIS_PARTITION	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   124
	"auto_install/ai_instance/target/target_device/disk/partition[action='use_existing']/action"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   125
#define	AIM_TARGET_DEVICE_INSTALL_SLICE_NUMBER \
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   126
	"auto_install/ai_instance/target/target_device/disk/slice[is_root='true']/name"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   127
#define	AIM_TARGET_DEVICE_ISCSI_TARGET_NAME \
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   128
	"auto_install/ai_instance/target/target_device/disk/iscsi/name"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   129
#define	AIM_TARGET_DEVICE_ISCSI_TARGET_IP \
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   130
	"auto_install/ai_instance/target/target_device/disk/iscsi/ip"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   131
#define	AIM_TARGET_DEVICE_ISCSI_TARGET_LUN \
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   132
	"auto_install/ai_instance/target/target_device/disk/iscsi/target_lun"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   133
#define	AIM_TARGET_DEVICE_ISCSI_TARGET_PORT \
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   134
	"auto_install/ai_instance/target/target_device/disk/iscsi/target_port"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   135
#define	AIM_TARGET_DEVICE_ISCSI_PARAMETER_SOURCE \
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   136
	"auto_install/ai_instance/target/target_device/disk/iscsi/source"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   137
#define	AIM_SWAP_SIZE	\
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   138
	"auto_install/ai_instance/target/target_device/swap/zvol/size/val"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   139
#define	AIM_DUMP_SIZE	\
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   140
	"auto_install/ai_instance/target/target_device/dump/zvol/size/val"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   141
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   142
#define	AIM_PARTITION_ACTIONS	\
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   143
	"auto_install/ai_instance/target/target_device/disk/partition/action"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   144
#define	AIM_NUMBERED_PARTITIONS	\
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   145
	"auto_install/ai_instance/target/target_device/disk/partition/name"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   146
#define	AIM_NUMBERED_PARTITION_NUMBER	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   147
	"auto_install/ai_instance/target/target_device/disk/partition[name=\"%s\":action=\"%s\"]/name"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   148
#define	AIM_NUMBERED_PARTITION_ACTION	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   149
	"auto_install/ai_instance/target/target_device/disk/partition[name=\"%s\":action=\"%s\"]/action"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   150
#define	AIM_NUMBERED_PARTITION_START_SECTOR	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   151
	"auto_install/ai_instance/target/target_device/disk/partition[name=\"%s\":action=\"%s\"]/size/start_sector"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   152
#define	AIM_NUMBERED_PARTITION_SIZE	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   153
	"auto_install/ai_instance/target/target_device/disk/partition[name=\"%s\":action=\"%s\"]/size/val"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   154
#define	AIM_NUMBERED_PARTITION_TYPE	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   155
	"auto_install/ai_instance/target/target_device/disk/partition[name=\"%s\":action=\"%s\"]/part_type"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   156
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   157
#define	AIM_USE_EXISTING_PARTITIONS	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   158
	"auto_install/ai_instance/target/target_device/disk/partition[action='use_existing']/action"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   159
#define	AIM_UNNUMBERED_PARTITION_NUMBER	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   160
	"auto_install/ai_instance/target/target_device/disk/partition[action='use_existing']/name"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   161
#define	AIM_UNNUMBERED_PARTITION_ACTION	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   162
	"auto_install/ai_instance/target/target_device/disk/partition[action='use_existing']/action"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   163
#define	AIM_UNNUMBERED_PARTITION_START_SECTOR	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   164
	"auto_install/ai_instance/target/target_device/disk/partition[action='use_existing']/size/start_sector"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   165
#define	AIM_UNNUMBERED_PARTITION_SIZE	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   166
	"auto_install/ai_instance/target/target_device/disk/partition[action='use_existing']/size/val"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   167
#define	AIM_UNNUMBERED_PARTITION_TYPE	\
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   168
	"auto_install/ai_instance/target/target_device/disk/partition[action='use_existing']/part_type"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   169
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   170
#define	AIM_SLICE_NUMBER "auto_install/ai_instance/target/target_device/disk/slice/name"
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   171
#define	AIM_SLICE_ACTION "auto_install/ai_instance/target/target_device/disk/slice/action"
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   172
#define	AIM_SLICE_SIZE "auto_install/ai_instance/target/target_device/disk/slice[name=\"%s\":action=\"%s\"]/size/val"
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   173
#define	AIM_SLICE_ON_EXISTING	\
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   174
	"auto_install/ai_instance/target/target_device/disk/slice[name=\"%s\":action=\"%s\"]/force"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   175
#define	AIM_AUTO_REBOOT	"auto_install/ai_instance/auto_reboot"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   176
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   177
#define	AIM_PROXY_URL "auto_install/ai_instance/http_proxy"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   178
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   179
#define	AIM_PACKAGE_INSTALL_NAME "auto_install/ai_instance/software/software_data[action='install']/name"
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   180
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   181
#define	AIM_PACKAGE_REMOVE_NAME "auto_install/ai_instance/software/software_data[action='uninstall']/name"
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   182
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   183
/*
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   184
 * Primary and secondary publishers
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   185
 */
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   186
#define	AIM_IPS_PUBLISHER_URL	\
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   187
	"auto_install/ai_instance/software/source/publisher/origin/name"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   188
#define	AIM_FALLBACK_PUBLISHER_URL	"http://pkg.opensolaris.org/release"
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   189
#define	AIM_FALLBACK_PUBLISHER_NAME	"opensolaris.org"
471
5a23ff9e7f8c 7219 Automated Installer reports slice customization in manifest where none exist
William Schumann <william.schumann@sun.com>
parents: 461
diff changeset
   190
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   191
/*
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   192
 * Find publisher name and mirror based on url
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   193
 */
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   194
#define	AIM_ADD_URL_PUBLISHER_NAME \
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   195
	"auto_install/ai_instance/software/source/publisher[origin/name=\"%s\"]/name"
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   196
#define	AIM_ADD_URL_PUBLISHER_MIRROR \
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   197
	"auto_install/ai_instance/software/source/publisher[origin/name=\"%s\"]/mirror/name"
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   198
495
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   199
/* type of package list to be obtained from manifest */
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   200
typedef enum {
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   201
	AI_PACKAGE_LIST_INSTALL,
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   202
	AI_PACKAGE_LIST_REMOVE
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   203
} auto_package_list_type_t;
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   204
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   205
/* hardcoded lists of packages for testing purposes */
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   206
#define	AI_TEST_PACKAGE_LIST_INSTALL	\
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   207
	"SUNWcsd\nSUNWcs\nbabel_install\nentire\n"
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   208
#define	AI_TEST_PACKAGE_LIST_REMOVE	"babel_install\n"
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   209
409
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   210
/* size units can be user-defined */
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   211
typedef enum {
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   212
	AI_SIZE_UNITS_MEGABYTES = 0,
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   213
	AI_SIZE_UNITS_SECTORS,
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   214
	AI_SIZE_UNITS_GIGABYTES,
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   215
	AI_SIZE_UNITS_TERABYTES
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   216
} auto_size_units_t;
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   217
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   218
/* define source of iSCSI parameters */
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   219
typedef enum {
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   220
	AI_ISCSI_PARM_SRC_MANIFEST = 0,
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   221
	AI_ISCSI_PARM_SRC_DHCP
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   222
} iscsi_parm_src_t;
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   223
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   224
/*
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   225
 * information needed to mount iSCSI boot target during installation
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   226
 */
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   227
typedef struct {
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   228
	char		name[INSTISCSI_MAX_ISCSI_NAME_LEN + 1];
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   229
	char		ip[INSTISCSI_IP_ADDRESS_LEN + 1];
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   230
	uint32_t	port;
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   231
	char		lun[INSTISCSI_MAX_LUN_LEN + 1];
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   232
	iscsi_parm_src_t parm_src;
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   233
} iscsi_info_t;
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   234
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   235
typedef struct {
414
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   236
	/*
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   237
	 * disk criteria for selection of target disk
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   238
	 */
862
e9f31f2f2f2d 16423 Updates to AI schema should be made
Sue Sohn <Susan.Sohn@Oracle.COM>
parents: 846
diff changeset
   239
	char		diskkeyword[10];		/* 'boot_disk' */
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   240
	char		diskname[MAXNAMELEN];
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   241
	char		disktype[MAXNAMELEN];
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   242
	char		diskvendor[MAXNAMELEN];
679
2f04e6d1a235 5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents: 667
diff changeset
   243
	char		diskvolname[MAXNAMELEN];
2f04e6d1a235 5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents: 667
diff changeset
   244
	char		diskdevid[MAXNAMELEN];
2f04e6d1a235 5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents: 667
diff changeset
   245
	char		diskdevicepath[MAXPATHLEN];
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   246
	uint64_t	disksize;
414
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   247
#ifndef	__sparc
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   248
	char		diskusepart[6];		/* 'true' or 'false' */
414
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   249
#endif
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   250
	iscsi_info_t	diskiscsi;		/* iSCSI target parameters */
414
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   251
	/*
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   252
	 * other data related to disk target
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   253
	 */
ad63b7c430bb 5739 AutomatedInstaller cannot find disks when default manifest is used
William Schumann <william.schumann@sun.com>
parents: 409
diff changeset
   254
	uint8_t		install_slice_number;	/* install Solaris here */
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   255
} auto_disk_info;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   256
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   257
typedef struct {
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   258
	char		partition_action[AUTO_MAX_ACTION_LEN];
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   259
	int		partition_number;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   260
	uint64_t	partition_start_sector;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   261
	uint64_t	partition_size;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   262
	int		partition_type;
409
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   263
	auto_size_units_t	partition_size_units;
667
808a042e4938 1777 Installer doesn't recognize logical volumes defined within extended partition
William Schumann <william.schumann@sun.com>
parents: 664
diff changeset
   264
	boolean_t	partition_is_logical;
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   265
} auto_partition_info;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   266
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   267
typedef struct {
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   268
	char		slice_action[AUTO_MAX_ACTION_LEN];
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   269
	int		slice_number;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   270
	uint64_t	slice_size;
409
141e3dc11d9f 4460 "partition_size" tag in ai_manifest.xml template should mention sectors
William Schumann <william.schumann@sun.com>
parents: 405
diff changeset
   271
	auto_size_units_t	slice_size_units;
810
8f09387744e3 8661 AI fails to continue installation if slices exist from previous configuration
William Schumann <william.schumann@sun.com>
parents: 789
diff changeset
   272
	om_on_existing_t	on_existing; /* action to take if it exists */
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   273
} auto_slice_info;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   274
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   275
typedef struct auto_mirror_repo {
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   276
	char			*mirror_url;
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   277
	struct auto_mirror_repo	*next_mirror;
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   278
} auto_mirror_repo_t;
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   279
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   280
typedef struct auto_repo_info {
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   281
	char			*publisher;
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   282
	char			*url;
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   283
	auto_mirror_repo_t	*mirror_repo; /* point to the list of mirrors */
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   284
	struct auto_repo_info	*next_repo; /* Point to the next repo */
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   285
} auto_repo_info_t;
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   286
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   287
typedef struct {
789
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   288
	int32_t		swap_size;	/* Swap Size in MB */
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   289
} auto_swap_device_info;
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   290
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   291
typedef struct {
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   292
	int32_t		dump_size;	/* Dump Size in MB */
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   293
} auto_dump_device_info;
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   294
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   295
typedef struct {
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   296
	char		*timezone;
477
04c667d64a87 4629 Cannot set timezone in automated installation
William Schumann <william.schumann@sun.com>
parents: 471
diff changeset
   297
	char		*hostname;
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   298
} auto_sc_params;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   299
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   300
typedef struct {
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   301
	uint32_t	size;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   302
	char		diskname[MAXNAMELEN];
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   303
	boolean_t	whole_disk;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   304
} install_params;
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   305
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   306
void	auto_log_print(char *fmt, ...);
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   307
void	auto_debug_print(ls_dbglvl_t dbg_lvl, char *fmt, ...);
822
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   308
void	auto_debug_dump_file(ls_dbglvl_t dbg_lvl, char *filename);
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   309
679
2f04e6d1a235 5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents: 667
diff changeset
   310
int	auto_target_discovery(void);
2f04e6d1a235 5451 No way to permanently target specific disk in AI engine manifest
Jan Damborsky <jan.damborsky@sun.com>
parents: 667
diff changeset
   311
int	auto_select_install_target(char **diskname, auto_disk_info *adi);
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   312
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   313
int	auto_parse_sc_manifest(char *profile_file, auto_sc_params *sp);
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   314
822
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   315
int	ai_create_manifest_image(char *filename);
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   316
int	ai_setup_manifest_image();
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   317
void	ai_teardown_manifest_state();
822
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   318
char	**ai_get_manifest_values(char *path, int *len);
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   319
void	ai_free_manifest_values(char **value_list);
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   320
int 	ai_get_manifest_disk_info(auto_disk_info *);
789
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   321
int 	ai_get_manifest_swap_device_info(auto_swap_device_info *adsi);
282f473d34ee 10115 AI ignores desired swap listed in ai manifest
Matt Keenan <matt.keenan@sun.com>
parents: 679
diff changeset
   322
int 	ai_get_manifest_dump_device_info(auto_dump_device_info *addi);
449
30ec6432d941 6584 Automated Installer should allow creating non-Solaris partitions
William Schumann <william.schumann@sun.com>
parents: 414
diff changeset
   323
auto_partition_info *ai_get_manifest_partition_info(int *);
459
56b6b042a167 5653 AI manifest should offer keyword to use max available space for partition/slice
William Schumann <william.schumann@sun.com>
parents: 449
diff changeset
   324
auto_slice_info *ai_get_manifest_slice_info(int *);
460
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   325
char	*ai_get_manifest_ipsrepo_url(void);
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   326
char	*ai_get_manifest_ipsrepo_authname(void);
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   327
char	*ai_get_manifest_ipsrepo_mirror(void);
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   328
char	*ai_get_manifest_ipsrepo_addl_url(void);
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   329
char	*ai_get_manifest_ipsrepo_addl_authname(void);
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   330
char	*ai_get_manifest_ipsrepo_addl_mirror(void);
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   331
auto_repo_info_t *ai_get_default_repo_info(void);
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   332
auto_repo_info_t *ai_get_additional_repo_info(void);
460
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   333
char	*ai_get_manifest_http_proxy(void);
495
a0961490f883 7415 'slim_install' is left on system when Automated Installer is used for the installation
Jan Damborsky <jan.damborsky@sun.com>
parents: 477
diff changeset
   334
char	**ai_get_manifest_packages(int *num_packages_p, char *pkg_list_tag_p);
471
5a23ff9e7f8c 7219 Automated Installer reports slice customization in manifest where none exist
William Schumann <william.schumann@sun.com>
parents: 461
diff changeset
   335
char	*ai_get_manifest_element_value(char *element);
664
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   336
void	free_repo_info_list(auto_repo_info_t *repo);
9a2107fc86ac 12659 AI only allows one "additional authority"
sundar.yamunachari@sun.com
parents: 658
diff changeset
   337
void	free_repo_mirror_list(auto_mirror_repo_t *mirror);
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   338
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   339
PyObject *ai_create_manifestserv(char *filename);
822
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   340
int	ai_setup_manifestserv(PyObject *server_obj);
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   341
void	ai_destroy_manifestserv(PyObject *server_obj);
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   342
char	**ai_lookup_manifest_values(PyObject *server_obj, char *path, int *len);
822
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   343
void	ai_free_manifest_value_list(char **value_list);
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   344
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   345
int	ai_du_get_and_install(char *install_root, boolean_t honor_noinstall,
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   346
	    boolean_t update_boot_archive);
822
2ba2b98f055e 10129 Blocker bug for Driver Update project
Jack Schwartz <Jack.A.Schwartz@Sun.COM>
parents: 810
diff changeset
   347
int	ai_du_install(char *install_root, boolean_t honor_noinstall,
869
424db5e50fb5 GK: Backed out changeset cfbbedf29419 for build 147
Keith Mitchell <keith.mitchell@oracle.com>
parents: 867
diff changeset
   348
	    boolean_t update_boot_archive);
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   349
658
831357e2155d 6590 Need support for iSCSI boot installations in Caiman
William Schumann <william.schumann@sun.com>
parents: 495
diff changeset
   350
int	mount_iscsi_target_if_requested(auto_disk_info *, char *, int);
460
22e95ec02b00 6610 AI does not recognize additional IPS repository
William Schumann <william.schumann@sun.com>
parents: 459
diff changeset
   351
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   352
#ifdef __cplusplus
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   353
}
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents:
diff changeset
   354
#endif
315
78d36732cf38 4030 auto-install should select a default target if a user defined target is
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 311
diff changeset
   355
78d36732cf38 4030 auto-install should select a default target if a user defined target is
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 311
diff changeset
   356
#endif /* _AUTO_INSTALL_H */