summaryrefslogtreecommitdiff
path: root/uts
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-01-05 21:02:11 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-01-05 21:02:11 +0400
commitfcb44c74f9a7193248bb7f7ea8a3ba8eb65d7d85 (patch)
treed24a5847bc4ff74b2e337f0e386c35ec533a3e61 /uts
parenta0663de75ae4402a9ca78994db48a4a60d6bc99a (diff)
downloadillumos-packaging-fcb44c74f9a7193248bb7f7ea8a3ba8eb65d7d85.tar.gz
Create default config files
Diffstat (limited to 'uts')
-rw-r--r--uts/debian/illumos-kernel.dirs.illumos-amd642
-rw-r--r--uts/debian/illumos-kernel.install1
-rw-r--r--uts/debian/illumos-kernel.postinst10
-rw-r--r--uts/debian/illumos-kernel.prerm13
-rwxr-xr-xuts/debian/rules2
5 files changed, 26 insertions, 2 deletions
diff --git a/uts/debian/illumos-kernel.dirs.illumos-amd64 b/uts/debian/illumos-kernel.dirs.illumos-amd64
new file mode 100644
index 0000000..615ae19
--- /dev/null
+++ b/uts/debian/illumos-kernel.dirs.illumos-amd64
@@ -0,0 +1,2 @@
+# for bootadm:
+platform/i86pc/amd64
diff --git a/uts/debian/illumos-kernel.install b/uts/debian/illumos-kernel.install
index f63e01f..8057e4c 100644
--- a/uts/debian/illumos-kernel.install
+++ b/uts/debian/illumos-kernel.install
@@ -5,6 +5,7 @@ boot/solaris/devicedb/master
debian/sock2path/default etc/sock2path.d/
etc/dacf.conf
etc/name_to_sysnum
+etc/security/priv_names
kernel/amd64/genunix
kernel/crypto/amd64/aes
diff --git a/uts/debian/illumos-kernel.postinst b/uts/debian/illumos-kernel.postinst
index de4b3e6..f3763cb 100644
--- a/uts/debian/illumos-kernel.postinst
+++ b/uts/debian/illumos-kernel.postinst
@@ -1,7 +1,6 @@
#!/bin/sh
set -e
-set -u
drv=/usr/share/illumos-kernel
@@ -22,6 +21,15 @@ case "$1" in
install_file /etc/name_to_major
install_file /etc/security/device_policy
install_file /etc/security/extra_privs
+
+ if ! [ -e /etc/path_to_inst ]; then
+ echo "Creating initial /etc/path_to_inst"
+ echo '#path_to_inst_bootstrap_1' > /etc/path_to_inst
+ fi
+ if ! [ -e /etc/system ]; then
+ echo "Creating empty /etc/system"
+ touch /etc/system
+ fi
;;
esac
diff --git a/uts/debian/illumos-kernel.prerm b/uts/debian/illumos-kernel.prerm
new file mode 100644
index 0000000..da2e0fe
--- /dev/null
+++ b/uts/debian/illumos-kernel.prerm
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+set -u
+
+case "$1" in
+ upgrade|remove)
+ find /platform -depth -type d -name archive_cache -exec rm -rf {} \;
+ find /platform -type f -name boot_archive -exec rm -f {} \;
+ ;;
+esac
+
+exit 0
+
diff --git a/uts/debian/rules b/uts/debian/rules
index c318e6c..77b0b85 100755
--- a/uts/debian/rules
+++ b/uts/debian/rules
@@ -156,7 +156,7 @@ install-stamp: build-stamp
binary binary-arch binary-indep: binary-stamp
-binary-stamp: install-stamp
+binary-stamp: install-stamp drivers-stamp
dh_testdir
dh_testroot
dh_installdirs