summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config
diff options
context:
space:
mode:
authorBob Igo <bob@stormlogic.com>2009-08-14 00:22:13 (GMT)
committerBob Igo <bob@stormlogic.com>2009-08-14 00:22:13 (GMT)
commitbb59e3365d888226cd564c0ea4459d6ed43c0321 (patch)
tree4630c07ef72d0fd3ffa625a60211cfe1d7437bf3 /abs/core-testing/LinHES-config
parentd68de00767d3ef08d8c026f249b6dc03ad85370f (diff)
downloadlinhes_pkgbuild-bb59e3365d888226cd564c0ea4459d6ed43c0321.zip
linhes_pkgbuild-bb59e3365d888226cd564c0ea4459d6ed43c0321.tar.gz
linhes_pkgbuild-bb59e3365d888226cd564c0ea4459d6ed43c0321.tar.bz2
Copy /var/lib/alsa for R5.5 -> R6 upgrades; needed for asound.state restoration
Diffstat (limited to 'abs/core-testing/LinHES-config')
-rw-r--r--abs/core-testing/LinHES-config/PKGBUILD2
-rwxr-xr-xabs/core-testing/LinHES-config/mv_install.py8
2 files changed, 6 insertions, 4 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD
index 423a5ea..de90229 100644
--- a/abs/core-testing/LinHES-config/PKGBUILD
+++ b/abs/core-testing/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-config
pkgver=2.0
-pkgrel=80
+pkgrel=83
conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev )
pkgdesc="Install and configure your system"
depends=(bc libstatgrab mysql-python expect curl dnsutils parted
diff --git a/abs/core-testing/LinHES-config/mv_install.py b/abs/core-testing/LinHES-config/mv_install.py
index aaf3a07..60d49a2 100755
--- a/abs/core-testing/LinHES-config/mv_install.py
+++ b/abs/core-testing/LinHES-config/mv_install.py
@@ -1078,11 +1078,13 @@ def find_upgrade():
cp_and_log2(data_config.TEMP_TEMPLATES, TEMPLATES, '')
cp_and_log(srcfile, "/etc/systemconfig")
cp_and_log(data_config.MOUNTPOINT+"/etc/", "/tmp/etc/")
+ cp_and_log(data_config.MOUNTPOINT+"/var/lib/alsa/", "/tmp/alsa")
cp_and_log(data_config.MOUNTPOINT+"/var/lib/oss/", "/tmp/oss")
cp_and_log("/tmp/etc/mdadm.conf", "/etc/mdadm.conf")
else:
logging.info("Could not find systemconfig file %s", srcfile)
cp_and_log(data_config.MOUNTPOINT+"/etc/", "/tmp/etc/")
+ cp_and_log(data_config.MOUNTPOINT+"/var/lib/alsa/", "/tmp/alsa")
cp_and_log("/tmp/etc/mdadm.conf", "/etc")
timezone_to_db("/tmp/etc/timezone")
unmount_it()
@@ -1191,11 +1193,11 @@ def upgrade(hostoptions):
copy_it("upgrade")
cmd = "rm -rf %s/etc.old" %data_config.MOUNTPOINT
runcmd(cmd)
- cmd = "rm -rf %s/varlibalsa.old" %data_config.MOUNTPOINT
+ cmd = "rm -rf %s/alsa.old" %data_config.MOUNTPOINT
runcmd(cmd)
cp_and_log("/tmp/etc/", data_config.MOUNTPOINT+"/etc.old/")
- cp_and_log("/tmp/var/lib/alsa/", data_config.MOUNTPOINT+"/varlibalsa.old/")
+ cp_and_log("/tmp/alsa", data_config.MOUNTPOINT+"/alsa.old/")
cp_and_log("/tmp/oss", data_config.MOUNTPOINT+"/var/lib/oss.old")
srcfile = "%s/etc.old/ssh/" %(data_config.MOUNTPOINT)
@@ -1208,7 +1210,7 @@ def upgrade(hostoptions):
cp_and_log("/tmp"+mdfile, data_config.MOUNTPOINT+"/etc")
# R5.5 -> R6
- srcfile = "%s/varlibalsa.old/asound.state" %(data_config.MOUNTPOINT)
+ srcfile = "%s/alsa.old/asound.state" %(data_config.MOUNTPOINT)
destfile = "%s/etc/asound.state" %(data_config.MOUNTPOINT)
cp_and_log(srcfile, destfile)
# R6 -> R6