Commit graph

208 commits

Author SHA1 Message Date
Mike Frysinger b86673c791 catalyst-auto: convert echo -e to printf
Makes the code a bit more robust.
2016-05-23 22:00:31 -04:00
Mike Frysinger d4e6ae0019 convert GITDIR over to REPO_DIR
The variables were representing the same thing, so merge them.
2016-05-19 22:17:41 -04:00
Mike Frysinger 170331ecea catalyst-auto: automatically calculate REPO_DIR
Rather than hardcode it to a path that works on only a few systems,
switch it to the dynamic calculation like we use for GITDIR.
2016-05-19 22:16:14 -04:00
Mike Frysinger 1294da6932 catalyst-auto: try to fix syntax error in previous commits 2016-05-07 16:04:33 -04:00
Robin H. Johnson 56e7e887ec
catalyst-auto: fix whitespace.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-05-06 11:30:25 -07:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) bac6e3a2d7 Move the code to update symlinks to a separate function, call it from pre_build and after each set build.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-05-05 10:07:20 +00:00
Robin H. Johnson a77a4ebce5
catalyst-auto: Record how long the catalyst runs take.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-29 11:20:28 -07:00
Robin H. Johnson fadbc54d95
tools: Add a config that filters to stage4 only.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-27 14:34:07 -07:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 407605789e Change copy logic.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-04-27 01:58:51 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 11c84ac57d Whitespace. Stop hardcoding the bz2 extension and sync updates to the scripts to the experimental scripts.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-04-26 22:35:19 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 67beeebbdf Stop using hardcoded paths for the releng repo.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-04-26 22:27:56 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) f5d7bfff3a Whitespace.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-04-26 21:46:07 +00:00
Robin H. Johnson dda6889241
tools: stage4-only config that loads base amd64 config to avoid duplication
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-26 14:10:03 -07:00
Mike Frysinger 08a69c4392 catalyst-auto: move default email settings to main script 2016-03-27 01:31:30 -04:00
Mike Frysinger bc16472a15 catalyst-auto: allow configs to set BUILD_SRCDIR_BASE
At least the amd64/x86 ones do this via ../config/build.env files.
2016-03-24 01:25:28 -04:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 32af29f06e Whitespace.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-03-24 03:30:32 +00:00
Mike Frysinger 51b8860d23 catalyst-auto: add an option to hold a lock while running
This makes it easy to put into a cronjob and not worry about a copy
already/still running.
2016-03-23 14:20:52 -04:00
Mike Frysinger fdc39e249c catalyst-auto: minor word smithing 2016-03-22 12:46:36 -04:00
Mike Frysinger f34a62d0ab catalyst-auto: add a time delay option
We usually run catalyst on systems via cronjob, and do so at weekly
(or so) intervals.  But if a failure hits a run, it will be a while
before we know if changes fixed the situation.  Instead, let's push
the delay logic into the script itself so we can run this tool once
a day.  When it passes, it will take care of quitting early.  When
it fails, it will retry once a day until it passes.
2016-03-21 01:34:12 -04:00
Mike Frysinger 880a1aa775 catalyst-auto: add a preclean option to trim temp files
This makes it easier to cronjob things w/out needing manual cleanup
from time to time by people.
2016-03-21 01:27:34 -04:00
Mike Frysinger a85f4327c6 catalyst-auto: unify catalyst.conf parsing 2016-03-21 01:21:05 -04:00
Mike Frysinger bebf046c7c punt ChangeLog files
We have git logs now to track relevant details.
2016-03-20 16:19:35 -04:00
Mike Frysinger 6a2361a8ea make portage_confdir location dynamic
Don't hardcode /root/ or /release/ paths to the releng git checkout.
Use the active git repo as the base path instead.
2016-03-20 16:14:42 -04:00
Mike Frysinger 0f867a3dfd catalyst-auto: use automatic GITDIR for ppc/ppc64/sparc64 2016-03-20 16:08:57 -04:00
Mike Frysinger 8b1a770842 catalyst-auto: use automatic GITDIR for hppa/ia64 2016-03-16 17:28:16 -04:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 39a3b94b39 Forgot to disable the systemd stage building.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-03-13 22:46:14 -01:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 13528ad4e1 Add alternative systemd stages.
I'm going to use this in my build server. The official stages are being built by Anthony.

Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-03-13 22:43:20 -01:00
Robin H. Johnson 9b18c9796e
tools/catalyst-auto: Allow multiple config files, for host-specific overrides.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-01-25 23:17:34 -08:00
Matthew Thode 06359b3c67
fix typo in catalyst config 2016-01-25 23:49:19 -06:00
Matthew Thode 56eaf4245f
enabling new minimal stage4 specs 2016-01-25 18:44:12 -06:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 656ca16378 Enable selinux stages.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2016-01-13 21:12:39 -01:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 4ed90e5bb5 Update sed to match snapshot version.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2015-12-27 02:44:04 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) e7ded9f8dd Update catalyst-auto scripts for amd64 / x86 to add support for more targets and improve the detection / copy of stages.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2015-12-27 02:37:12 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) bc954c38f2 Fix another spec name typo.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2015-12-18 02:54:15 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 16bcda7b4e Fix stage4 spec name.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2015-12-18 02:30:15 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 006fc1f047 Rename the stage4 to "cloud" in case we decide to add more stage4 later.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2015-12-18 00:55:24 -01:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 29419b20d2 Add stage4 for Matthew's cloud images - https://github.com/prometheanfire/gentoo-cloud-prep/ .
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
2015-12-16 01:58:22 -01:00
Raúl Porcel c2b28e8d1f Add netboot to s390 conf and fix s390x conf
Signed-off-by: Raúl Porcel <armin76@gentoo.org>
2014-10-06 07:47:42 +00:00
Raúl Porcel 509ce3b823 Add netboot to s390x 2014-10-02 10:00:07 +00:00
Raúl Porcel 27440baa63 Update alpha 2014-09-28 14:23:06 +00:00
Mike Frysinger a05155c18b catalyst-auto: set up a default GITDIR for scripts
Rather than hardcode system-specific paths, let catalyst-auto probe
the current git dir based on its script name.
2014-09-10 15:58:54 -04:00
Mike Frysinger 187e786116 catalyst-auto: automatically use uts/ipc/pid namespaces
If the system can support them, throw the build process into various
namespaces to further isolate ourselves from the host system.
2014-09-10 15:54:16 -04:00
Mike Frysinger dbacb3edd6 catalyst-auto: construct tempdir with mktemp rather than pid
This way we can sanely use pid namespaces without tempdirs clashing.
2014-09-10 15:52:48 -04:00
Mike Frysinger 9133fc879c catalyst-auto: clean up usage a bit 2014-09-10 15:51:20 -04:00
Raúl Porcel 2a8047d9c9 Push to nightheron instead of skimmer 2014-08-08 14:01:20 +00:00
Guy Martin d203cfd8ba tools/catalyst-auto: Set pipefail to catch failure in verbose mode as well. 2014-04-15 13:07:03 +02:00
Mike Frysinger 13469f8665 add autobuild support for s390/s390x 2014-02-24 02:49:49 -05:00
Mike Frysinger 509986231a catalyst-auto: run in a mount namespace
This way if things crash, we don't leak mounts that need cleaning up.
2014-02-24 02:49:49 -05:00
Raúl Porcel 97103e7cfa move hostname to guppy 2014-02-01 18:10:33 +00:00
Guy Martin 7666dee327 Update hppa 2014-01-19 18:46:34 +00:00
Raúl Porcel 0fa0d1ff30 Fix ia64 2013-08-20 06:33:42 +00:00
Raúl Porcel 3dd1d8ec72 There was an extra done 2013-08-19 11:46:05 +00:00
Raúl Porcel 097690e780 Typo 2013-08-16 10:23:08 +00:00
Raúl Porcel 10fd7de988 Fix variable 2013-08-16 10:18:37 +00:00
Raúl Porcel ff14403dd3 Fix path on armv7a_hardfp, thanks to steev 2013-08-16 10:08:20 +00:00
Raúl Porcel d52ba1dca0 Add arm configs with latest seed logic and update specs accordingly 2013-08-16 10:03:04 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 6dcdad447a Fix the circular latest symlinks by taking them out of the list of stages.
Sync amd64/x86 experimental script with base amd64/x86 script.
2013-08-16 01:23:03 +00:00
Raúl Porcel b08dd40cac Add latest logic to ppc* as well 2013-08-14 18:01:14 +00:00
Raúl Porcel 93c25d5835 Add a dash for just in case 2013-08-14 17:55:31 +00:00
Raúl Porcel 9ce4d2496c whitespace 2013-08-14 17:53:22 +00:00
Raúl Porcel 07f3c9743a Use latest logic for stage1 seed on hppa 2013-08-14 17:52:39 +00:00
Raúl Porcel 5c3f1d9036 Use latest logic for stage1 seed, hppa and ppc need some work as they have all the stages in the same dir 2013-08-14 17:40:22 +00:00
Raúl Porcel 585d8d645f Remove apostrophes 2013-08-14 17:23:42 +00:00
Raúl Porcel b44902b6e9 The user should be ppc not powerpc 2013-08-06 15:29:31 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 5b98494124 Drop the date from the destination dir to avoid the double date directories in the mirrors. 2013-04-28 22:36:56 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) cf5df37ff0 Add the sets to create the selinux targets. They're not being added to sets, yet. 2013-04-20 15:21:31 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) bd55c0c987 Revert unintentional change to amd64 / x86 paths that is causing path weirdness on mirrors. 2013-04-18 08:28:12 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 7b2552f0c8 Update x86 script file to only copy the ISO files if we built the ISO file. 2013-04-18 08:01:16 +00:00
Raúl Porcel fb9eb53055 Push to skimmer instead of poseidon 2013-01-22 19:40:48 +00:00
Raúl Porcel c569225fea Set to /tmp if isn't set 2013-01-02 11:03:19 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 666c0cdbe6 Build parent dirs if needed. 2012-10-14 04:30:56 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) ccfa820194 Add experimental conf files for amd64/x86. 2012-10-13 04:16:14 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) f42a40df9a Move hardcoded paths out of the script files. 2012-10-13 04:06:36 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 8ee2ae6b0f Update config for amd64 / x86 to store stages under {default,hardened}. 2012-10-11 06:13:20 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 104107c2b0 Create catalyst temp dirs, including logs, under /release path instead of using system /tmp. 2012-10-11 06:08:14 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 1c1dd9bf9e Update email address to skimmer and add nomultilib to the amd64 set. 2012-09-17 20:49:07 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 40a7d8dcce Update tools and config files for skimmer. 2012-09-17 01:21:57 +00:00
Raúl Porcel e1414539d7 Remove unneeded stuff 2012-09-11 20:58:13 +02:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) e6637d16dc Fix x86 i[46]86 stage test. 2012-08-31 00:25:44 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) c842572bf9 Drop extra '*' on catalyst-auto-x86. 2012-08-29 02:05:56 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 50891e6e07 Fix the catalst-auto-x86.conf file. 2012-07-18 03:59:43 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 25a5c10300 Add more checks and tests in postbuild for amd64 / x86. 2012-07-10 00:38:07 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) bd95b08675 Fix whitespace. 2012-06-27 23:58:05 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) c01d15caea Added x32 specs set and prepared the sets to build nomultilib and x32 targets. 2012-06-13 04:52:28 +00:00
Raúl Porcel 81f0612a69 Fix path for GITDIR on ia64 2012-03-06 19:27:01 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) 8c70eae6ee Add the nomultilib set. The target won't be built until the set is added to sets. 2012-02-22 04:16:53 +00:00
Jorge Manuel B. S. Vicetto (jmbsvicetto) e38dced51f Update catalyst tools to use git for amd64 and x86. 2012-02-13 00:10:01 -01:00
Raúl Porcel f061c9fb36 Update sparc64 conf 2012-02-09 16:00:44 +00:00
Raúl Porcel 8e2a4cec66 Update confs to use git 2012-02-09 15:58:30 +00:00
Jeremy Olexa d5d54a8abf catalyst-auto: add verbose short option for improved usability. Approved by jmbsvicetto
svn path=/trunk/; revision=838
2011-12-02 05:15:46 +00:00
Jorge Manuel B. S. Vicetto 0ad5787ec8 Add a few vars to the start of the script to reduce the hardcoded paths.
svn path=/trunk/; revision=812
2011-09-15 23:17:45 +00:00
Robin H. Johnson b477dc4322 Add new gentoo-releng-autobuilds list as a mail destination.
svn path=/trunk/; revision=771
2011-01-18 04:45:27 +00:00
Robin H. Johnson d45d5c61f0 Split multiple recipients to whitespace instead of comma.
svn path=/trunk/; revision=770
2011-01-18 04:45:15 +00:00
Robin H. Johnson f24ecd86d0 Create a symlink for -latest as seed stage
Create a symlink for the latest name from the available stages3 always,
that is then used as the seed for building the new stages. To ensure
creation, always copy instead of move the stages to the destination
afterwards. In addition to this, we need a cleanup script, as before
only the isos and stages3 were moved, leaving the stage[12] eating up
space behind.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Proposed-by: Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
Acked-by: Andrew Gaffney <agaffney@gentoo.org>

svn path=/trunk/; revision=769
2011-01-14 05:53:24 +00:00
Raúl Porcel b0748e7f32 Update hppa config
svn path=/trunk/; revision=754
2010-11-02 19:34:23 +00:00
Raúl Porcel 4524d9eb69 Fix for ppc64
svn path=/trunk/; revision=748
2010-09-08 17:57:30 +00:00
Raúl Porcel 06073c88bf Add ppc configs
svn path=/trunk/; revision=747
2010-09-06 17:22:38 +00:00
Andrew Gaffney 9ce1595610 Detect build failure in one of the build sets and act accordingly
svn path=/trunk/; revision=712
2009-11-02 13:31:26 +00:00
Andrew Gaffney e0a64a134f remove local keywords in non-functions
svn path=/trunk/; revision=665
2009-08-25 15:27:17 +00:00
Andrew Gaffney d97de707d7 Switch hppa config to use build sets
svn path=/trunk/; revision=655
2009-07-01 03:12:29 +00:00