diff options
Diffstat (limited to 'abs/core/LinHES-config')
| -rw-r--r-- | abs/core/LinHES-config/LinHES-release | 2 | ||||
| -rwxr-xr-x | abs/core/LinHES-config/PKGBUILD | 14 | ||||
| -rwxr-xr-x | abs/core/LinHES-config/install_proxy.sh | 2 | ||||
| -rw-r--r-- | abs/core/LinHES-config/mv_install.py | 140 | ||||
| -rwxr-xr-x | abs/core/LinHES-config/systemconfig.py | 11 | ||||
| -rwxr-xr-x | abs/core/LinHES-config/systemconfig.sh | 6 |
6 files changed, 29 insertions, 146 deletions
diff --git a/abs/core/LinHES-config/LinHES-release b/abs/core/LinHES-config/LinHES-release index 4d73023..f578cec 100644 --- a/abs/core/LinHES-config/LinHES-release +++ b/abs/core/LinHES-config/LinHES-release @@ -1 +1 @@ -LinHES R8.4.2 (Breaking Ground) +LinHES R8.4.3 (Breaking Ground) diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD index f67f84d..b49c6b9 100755 --- a/abs/core/LinHES-config/PKGBUILD +++ b/abs/core/LinHES-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-config -pkgver=8.4.2 -pkgrel=5 +pkgver=8.4.3 +pkgrel=3 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config ) pkgdesc="Install and configure your system" depends=('bc' 'libstatgrab' 'mysql-python' 'expect' 'curl' 'dnsutils' 'parted' @@ -141,14 +141,14 @@ package() { install -o root -g root -D -m 0755 blacklist_nouveau.conf $pkgdir/etc/modprobe.d/blacklist_nouveau.conf } -md5sums=('97b810ddc35d1f441dbe8cdd6886e2af' +md5sums=('fe70208a7c11f7e2115655ad0004ddaf' '51525188ac6f6034422c5d71d0c84408' 'f6e9dd7bc6cf0aaa3bd203dab4cb79b9' '2596460462cf6c889cf8f95485537b20' '985891a43f7c4c983eb2a362162f1a0f' - '261ba62515edd7a13d46cbeb1b0eadca' + '78ff21d5babfb52caa4985f3bae4f5af' '6821fdfacf2aac44275200d3acaadb56' - 'f73d6d6f98839e900cb6685bf5dc4eae' + 'b1427dcdbba2ed2924a86a5a1d1cd6a3' '27e4fcacca9b9662dd782fbdc92fceea' '2a7f3b34e522acfd08283b86c8926aba' 'b596d2e3779a434435bc0f0277b1ba3e' @@ -156,7 +156,7 @@ md5sums=('97b810ddc35d1f441dbe8cdd6886e2af' 'f0376c98a7986897406d393186c0365e' '157e73d0f90d7b306aba8f5921aeedd3' '1f58c0393a131f4a8f9a84b3fe08a7e4' - '5c9fcb4cf5fb736df89ad60ca2e694f3' + 'cd8de15b472f29557e91e6e61084f91f' '5f890ea9bda6aef652d2560ca19dac07' 'ab2aa42c2947148c2b1cac0ade6d1d55' 'd429b59d3cfb37b0624c6a4a71a7c2c0' @@ -180,7 +180,7 @@ md5sums=('97b810ddc35d1f441dbe8cdd6886e2af' 'b79fe6ef82b0b5e71d62806e773ed556' '3cb673adb83b6afa52cffaa621b9d96b' '781f161a79c3188a31c8615b8258b241' - '888a6c57f272d9fa3e77e216a421562b' + 'dc56af9523253917c9feee0f083b4781' '6cb0aac63623a44463c4209862d2baa0' 'cdd5008ee77e67c1d51ad73a24612485' '2596460462cf6c889cf8f95485537b20' diff --git a/abs/core/LinHES-config/install_proxy.sh b/abs/core/LinHES-config/install_proxy.sh index 7d987f5..35b911d 100755 --- a/abs/core/LinHES-config/install_proxy.sh +++ b/abs/core/LinHES-config/install_proxy.sh @@ -24,7 +24,7 @@ progress () { then echo "" > /tmp/.install_percent else - echo "${mypercent}% complete" > /tmp/.install_percent + echo "${mypercent}% Complete" > /tmp/.install_percent fi } diff --git a/abs/core/LinHES-config/mv_install.py b/abs/core/LinHES-config/mv_install.py index ed3e342..11af990 100644 --- a/abs/core/LinHES-config/mv_install.py +++ b/abs/core/LinHES-config/mv_install.py @@ -52,7 +52,7 @@ def update_db(value, data): logging.debug("Unable to update database with %s, %s", data, value) def progress(pgnum): - progressline = str(pgnum) + "% complete" + progressline = str(pgnum) + "% Complete" logging.debug("Progress: %s", pgnum) f = open('/tmp/.install_percent', 'w') f.write(progressline) @@ -630,7 +630,7 @@ def format_disk(install_type): def mount_it(): logging.info("______Mounting disk______") -# Create mount points + # Create mount points try: mountpoint = data_config.MOUNTPOINT mp = mountpoint @@ -744,116 +744,38 @@ def create_squashlist(): f.close() def mount_for_copy_it(): - mounts = {} + #Use static build mount and umount from mount2.28.2.tar.xz + #Versions of util-linux mount after 2.28.2 do not allow 1 image to be + # mounted to multiple loop devices. + #Our ISO mounts airootfs.img to both / and /image_mount + cmd = 'tar -xvf /tmp/mount2.28.2.tar.xz -C /tmp/' + rc = runcmd(cmd)[0] + if rc != 0 : + error_out("Failed to extract static mount from /tmp/mount2.28.2.tar.xz") - #mounts['/image_mount/root'] = 'root-image' - #mounts['/image_mount/usr/share'] = 'usr-share' - #mounts['/image_mount/lib/modules'] = 'lib-modules' - #mounts['/image_mount/var/lib/pacman'] = 'var-lib-pacman' - #mounts['/image_mount/data/storage/disk0/pacman/pkg'] = 'data-storage-disk0-pacman-pkg' - #mounts['/image_mount/var/cache/pacman'] = 'var-cache-pacman' + mounts = {} mounts['/image_mount'] = 'airootfs' for image_mount, fsimage in mounts.iteritems(): try: os.makedirs(image_mount) except: pass - #cmd = 'mount /run/archiso/sfs/%s/%s.fs %s' %(fsimage,fsimage,image_mount) - cmd = 'mount /run/archiso/sfs/%s/%s.img %s' %(fsimage,fsimage,image_mount) + cmd = '/tmp/mount /run/archiso/sfs/%s/%s.img %s' %(fsimage,fsimage,image_mount) rc = runcmd(cmd)[0] if rc != 0 : error_out("Mount image %s" %fsimage) - - - #image_mount='/image_mount/root' - #try: - #os.makedirs(image_mount) - #except: - #pass - - #image_mount='/image_mount/usr/share' - #try: - #os.makedirs(image_mount) - #except: - #pass - - #image_mount='/image_mount/lib/modules' - #try: - #os.makedirs(image_mount) - #except: - #pass - - #image_mount='/image_mount/var/cache/pacman' - #try: - #os.makedirs(image_mount) - #except: - #pass - - #image_mount='/image_mount/var/lib/pacman' - #try: - #os.makedirs(image_mount) - #except: - #pass - - - #fsimage='root-image' - #cmd = 'mount /run/archiso/sfs/%s/%s.fs /image_mount/root' %(fsimage,fsimage) - #rc = runcmd(cmd)[0] - #if rc != 0 : - #error_out("Mount image root") - - #fsimage='lib-modules' - #cmd = 'mount /run/archiso/sfs/%s/%s.fs /image_mount/lib/modules' %(fsimage,fsimage) - #rc = runcmd(cmd)[0] - #if rc != 0 : - #error_out("Mount image lib-modules") - - #fsimage='usr-share' - #cmd = 'mount /run/archiso/sfs/%s/%s.fs /image_mount/usr/share' %(fsimage,fsimage) - #rc = runcmd(cmd)[0] - #if rc != 0 : - #error_out("Mount image usr share") - - #fsimage='var-lib-pacman' - #cmd = 'mount /run/archiso/sfs/%s/%s.fs /image_mount/var/lib/pacman' %(fsimage,fsimage) - #rc = runcmd(cmd)[0] - #if rc != 0 : - #error_out("Mount image var-lib-pacman") - - #fsimage='var-cache-pacman' - #cmd = 'mount /run/archiso/sfs/%s/%s.fs /image_mount/var/cache/pacman' %(fsimage,fsimage) - #rc = runcmd(cmd)[0] - #if rc != 0 : - #error_out("Mount image var-cahce-pacman") - - def umount_for_copy_it(): mounts = {} mounts['/image_mount'] = 'airootfs' - - - #mounts['/image_mount/root'] = 'root-image' - #mounts['/image_mount/usr/share'] = 'usr-share' - #mounts['/image_mount/lib/modules'] = 'lib-modules' - #mounts['/image_mount/var/lib/pacman'] = 'var-lib-pacman' - #mounts['/image_mount/data/storage/disk0/pacman/pkg'] = 'data-storage-disk0-pacman-pkg' - #mounts['/image_mount/var/cache/pacman'] = 'var-cache-pacman' - - - for image_mount, fsimage in mounts.iteritems(): - #cmd = 'mount /run/archiso/sfs/%s/%s.fs %s' %(fsimage,fsimage,image_mount) - cmd='umount %s' %(image_mount) + cmd='/tmp/umount %s' %(image_mount) rc = runcmd(cmd)[0] if rc != 0 : error_out("unMount image %s" %image_mount) - - - def copy_it(install_type): logging.info("______Transferring to disk______") mount_for_copy_it() @@ -861,25 +783,8 @@ def copy_it(install_type): logging.debug( install_type) if ( install_type == "install"): logging.info("Transferring system") - #cmdlist = ['rsync -arp /image_mount/root/* /new_boot', - ##'rsync -arp /image_mount/lib/* /new_boot/lib/', - #'rsync -arp /image_mount/lib /new_boot/', - #'rsync -arp /image_mount/lib64 /new_boot/', - #'rsync -arp /image_mount/usr /new_boot', - #'rsync -arp /image_mount/sbin /new_boot', - #'rsync -arp /image_mount/bin /new_boot', - #'rsync -arp /image_mount/var /new_boot', - #'rsync -arp /image_mount/data/storage/disk0/* /new_boot/data/storage/disk0/', - #'rysnc -arp /image_mount/var-lib-pacman/sync /new_boot/var/lib/pacman/' - #] - - #cmdlist = ['rsync -arp --exclude var-lib-pacman --exclude boot-orig /image_mount/* /new_boot', - # 'rsync -arp /image_mount/var-lib-pacman/sync /new_boot/var/lib/pacman/', - # 'rsync -arp /image_mount/boot-orig/* /new_boot/boot/ ' - # ] - - - cmdlist = ['rsync -arp --exclude var-lib-pacman --exclude boot-orig /image_mount/* /new_boot'] + + cmdlist = ['rsync -arp --exclude var-lib-pacman --exclude boot-orig --exclude tmp/mount2.28.2.tar.xz /image_mount/* /new_boot'] for cmd in cmdlist: rc = runcmd(cmd)[0] @@ -891,16 +796,9 @@ def copy_it(install_type): if ( install_type == "upgrade"): logging.info("Upgrading system") - #cmdlist = ['rsync -arp --exclude /home --exclude /data/srv/mysql /image_mount/root/* /new_boot', - #'rsync -arp /image_mount/lib/* /new_boot/lib/', - #'rsync -arp /image_mount/usr /new_boot', - #'rsync -arp /image_mount/var /new_boot'] - - cmdlist = ['rsync -arp --exclude var-lib-pacman --exclude boot-orig --exclude /home --exclude /data/srv/mysql /image_mount/* /new_boot'] - + cmdlist = ['rsync -arp --exclude var-lib-pacman --exclude boot-orig --exclude tmp/mount2.28.2.tar.xz --exclude /home --exclude /data/srv/mysql /image_mount/* /new_boot'] for cmd in cmdlist: - #runcmd(cmd) rc = runcmd(cmd)[0] if rc != 0 : error_out("Running %s" %cmd) @@ -925,10 +823,7 @@ def copy_it(install_type): cp_and_log("/var/lib/dhcpcd/*.lease", data_config.MOUNTPOINT+"/var/lib/dhcpcd/") - - - -# General fixup + # General fixup cmd = "chmod 777 %s/tmp" %(data_config.MOUNTPOINT) runcmd(cmd) cmd = "chmod 1777 %s/var/lock" %(data_config.MOUNTPOINT) @@ -951,7 +846,6 @@ def copy_it(install_type): runcmd(cmd) - #sys.exit(3) apply_pristine() post_process() diff --git a/abs/core/LinHES-config/systemconfig.py b/abs/core/LinHES-config/systemconfig.py index c7cbb8a..ef5fef1 100755 --- a/abs/core/LinHES-config/systemconfig.py +++ b/abs/core/LinHES-config/systemconfig.py @@ -467,13 +467,4 @@ if __name__ == "__main__": for i in systemconfig.items(): logging.debug(i) #pass - - - - - - - - - - + logging.debug("______END OF DEBUG______") diff --git a/abs/core/LinHES-config/systemconfig.sh b/abs/core/LinHES-config/systemconfig.sh index 76194dd..8e79f75 100755 --- a/abs/core/LinHES-config/systemconfig.sh +++ b/abs/core/LinHES-config/systemconfig.sh @@ -4,6 +4,7 @@ #Any changes made to config files will be removed when systemconfig.sh is run # #JM +MYTH_RUN_STATUS="1" echo $@ >/tmp/systemconfig.call echo "----------------------start of systemconfig $@ ----------------------" . /etc/profile @@ -23,8 +24,5 @@ postfix=`cat ${BASE}/usr/local/share/mythtv/.releasetype` systemconfig.py -m $@ rc=$? -echo "systemconfig.py exit code $rc" +echo "systemconfig.py exit code $rc" | tee -a /tmp/systemconfig.call exit $rc - - - |
