diff options
author | Unconfigured <Unconfigured> | 2009-06-30 05:34:43 (GMT) |
---|---|---|
committer | Unconfigured <Unconfigured> | 2009-06-30 05:34:43 (GMT) |
commit | cc49572066ec24f4e609394dd012bf9325348491 (patch) | |
tree | 1890d08eb23eb1351b3c6558f7ca6047c8e8aff6 /abs/core-testing/LinHES-config | |
parent | 3ea388eb421881811585997ae691083dd996733e (diff) | |
parent | a77d9915f36ed35bce7e3ba19acd07d0078359db (diff) | |
download | linhes_pkgbuild-cc49572066ec24f4e609394dd012bf9325348491.zip linhes_pkgbuild-cc49572066ec24f4e609394dd012bf9325348491.tar.gz linhes_pkgbuild-cc49572066ec24f4e609394dd012bf9325348491.tar.bz2 |
diskless-legacy: new - please build\nLinHES-config: removed config_diskless frontend ** needed to remove reference to mythinstall.bin because the repository does not have it. Someone needs to git add it?
Diffstat (limited to 'abs/core-testing/LinHES-config')
-rwxr-xr-x | abs/core-testing/LinHES-config/PKGBUILD | 42 | ||||
-rwxr-xr-x | abs/core-testing/LinHES-config/mv_install.py | 14 |
2 files changed, 17 insertions, 39 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD index dbad0e3..9d3a5d1 100755 --- a/abs/core-testing/LinHES-config/PKGBUILD +++ b/abs/core-testing/LinHES-config/PKGBUILD @@ -1,14 +1,12 @@ pkgname=LinHES-config pkgver=2.0 -pkgrel=29 +pkgrel=32 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev ) pkgdesc="Install and configure your system" depends=(linhes-timezone bc libstatgrab mysql-python expect curl dnsutils parted sg3_utils nmbscan system-templates rsync python-parted ddcxinfo) arch=('i686') -source=(mv_install.py mv_config.py -#mythinstall.bin -myth_user_call file_time_offset.py install-ui.xml install_proxy.sh install_functions.sh systemconfig.sh install_db_chroot.sh restore_default_settings.sh xconfig.sh timezip.py soundconfig.sh LinHES-release issue MythVantage.sh create_master.sh build_diskless.sh networkconfig.sh autocard.py restore_km_db_chroot.sh README mv_advanced.py mv_common.py mv_ir.py mv_misc.py mv_network.py mv_screensaver.py mv_smolt.py mv_software.py mv_webuser.py mv_hostype.py systemconfig.py) +source=(mv_install.py mv_config.py mythinstall.bin myth_user_call file_time_offset.py install-ui.xml install_proxy.sh install_functions.sh systemconfig.sh install_db_chroot.sh restore_default_settings.sh xconfig.sh timezip.py soundconfig.sh LinHES-release issue MythVantage.sh create_master.sh build_diskless.sh networkconfig.sh autocard.py restore_km_db_chroot.sh README mv_advanced.py mv_common.py mv_ir.py mv_misc.py mv_network.py mv_screensaver.py mv_smolt.py mv_software.py mv_webuser.py mv_hostype.py systemconfig.py) install=LinHES.install build() { @@ -64,44 +62,10 @@ build() { install -m 0755 install-ui.xml $startdir/pkg/usr/share/mythtv/themes/default/ #copy in the binaries -# install -m 4755 mythinstall.bin $MVDIR/bin/MythVantage + install -m 4755 mythinstall.bin $MVDIR/bin/MythVantage cd $MVDIR/bin ln -s MythVantage mythvantage ln -s MythVantage mythinstall cd - } -md5sums=('97a75e1c2d780881566d3388532ac0f7' - '40e3173b3f98beb1d94320eef3b60854' - 'e36da536dd651ef182e7642337889e77' - '3baa23764e1b6bcb2d66d7d859096940' - 'd6009f9a4ff3238aa911d6e61a8c675a' - 'd7a8cd4a0060399ae22e69f74e04eb07' - '0abe8d207147eeb306743640e33e4757' - 'f88d2fb88339a4bf8ec9217a3fbcdef7' - '8ac1cfd2eca0f641737da0d0aca416a7' - 'd8a4a1699e04eed9ee69d58616069f33' - '3a91b587179be4fecb2549e46821708e' - 'a02a7c0c59a1cc96d88137a41354c96a' - 'e459ed069317bccb20351f037a9df3d2' - 'd092238975aafaac4ec576d34303f762' - '6aff504ed5e860adc1b7317cd0780900' - '55fccb1da0417a896b724f7cfc32dd5a' - 'ab2aa42c2947148c2b1cac0ade6d1d55' - 'd429b59d3cfb37b0624c6a4a71a7c2c0' - 'a225143e3df6f56d451c2875e54ddbae' - '1ee558ee9efec54016cb4c87c61e569c' - '687555968d4ca688d8f95c8f13e1d8d4' - '3d1e4a119f38cff0498bf8a67e94e4b3' - 'e9cfd0ccad3a984520780947b2f420bd' - '5ad4a57fe6bd53ea6a5820751c476e4d' - 'cf0113438a4916a8d815a3b7bde50c42' - '4aa795a1f5d789d5532a752606eca4df' - '65d93f15ac85adf8299552581789a731' - 'a6c9cd6cf243daea737e4ed601c88567' - '32385482ecc1275409b71f08d8b03acc' - 'da0a2fb1e3cdbabac1f62e8b908c5d7f' - '30e527552ae86eb90d5c2169c6316fd1' - 'f19917bed3a1e00cbe08838bee18b4b7' - '08282647ebf7e563cb9f3bc2ad8aee14' - 'd53f305749abdf5fca176f50b40df4fc') diff --git a/abs/core-testing/LinHES-config/mv_install.py b/abs/core-testing/LinHES-config/mv_install.py index 9d70a55..e96dd56 100755 --- a/abs/core-testing/LinHES-config/mv_install.py +++ b/abs/core-testing/LinHES-config/mv_install.py @@ -307,6 +307,19 @@ def create_partitions(diskdevice, size, ptype, startsector): (newpart.getDeviceNodeName(), newpart.getSize(), diskdevice)) return newpart.getDeviceNodeName() +def set_active_parition(diskdevice): + """ Set the bootable flag for this partition. """ + logging.debug(" Setting active parition") + device = parted.getDevice(diskdevice) + partdisk = parted.Disk(device) + try: + for partition in partdisk.partitions: + partition.setFlag(parted.PARTITION_BOOT) + partdisk.commit() + except: + logging.info(" Couldn't set the active partition") + logging.info(" Depending on your system this may not matter") + def partition_disk(): global hostoptions @@ -319,6 +332,7 @@ def partition_disk(): label = "data" partitions_removeall("/dev/"+datadisk, label) hostoptions["rootpartition"] = create_partitions("/dev/"+rootdisk, hostoptions["rootsize"], "NORMAL", 0) + set_active_parition("/dev/"+rootdisk) hostoptions["swappartition"] = create_partitions("/dev/"+rootdisk, hostoptions["swapsize"], "SWAP", 1) if datadisk != rootdisk: hostoptions["datapartition"] = create_partitions("/dev/"+datadisk, hostoptions["datasize"], "NORMAL", 0) |