Mike Frysinger
6fd55163c0
catalyst-auto: reject unknown command line arguments
2016-12-21 20:20:03 -05:00
Mike Frysinger
d56243723a
catalyst-auto: drop unused variables
2016-12-21 20:20:02 -05:00
Robin H. Johnson
3a6d81ff2e
catalyst-auto: do not fail if /usr/bin/time is not present.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-05-30 09:13:32 -07:00
Robin H. Johnson
380990612e
catalyst-auto: datestamp tmpdir for ease of debug.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-05-27 13:43:08 -07:00
Mike Frysinger
d97b2662fa
catalyst-auto: use local
in a few more places
2016-05-23 22:02:22 -04:00
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
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
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
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
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
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
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
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
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
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
c569225fea
Set to /tmp if isn't set
2013-01-02 11:03:19 +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)
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)
e38dced51f
Update catalyst tools to use git for amd64 and x86.
2012-02-13 00:10:01 -01: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
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
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
bb10ef43bb
Add concept of build sets to catalyst-auto
...
svn path=/trunk/; revision=652
2009-06-27 19:09:30 +00:00
Andrew Gaffney
8836f1615a
run find specifically in KCONFIG_DIR
...
svn path=/trunk/; revision=648
2009-05-14 02:49:40 +00:00
Andrew Gaffney
d283760bbf
replace the version_stamp in livecd/volid
...
svn path=/trunk/; revision=632
2009-05-09 19:07:50 +00:00
Andrew Gaffney
928ea3e580
Fix typo with multiple kernel code
...
svn path=/trunk/; revision=623
2009-03-13 12:51:55 +00:00
Andrew Gaffney
cccf5459c3
Add --test flag
...
svn path=/trunk/; revision=622
2009-03-13 12:34:18 +00:00
Andrew Gaffney
f4c2a46fa4
Process kconfig lines in a loop to handle specs with multiple kernels
...
svn path=/trunk/; revision=620
2009-03-02 13:15:10 +00:00
Andrew Gaffney
6e12e7b077
add -k option to usage output
...
svn path=/trunk/; revision=606
2009-01-02 01:50:52 +00:00
Andrew Gaffney
cc3fbdfd82
Log output of purge command
...
svn path=/trunk/; revision=604
2009-01-02 01:45:40 +00:00
Andrew Gaffney
96624549d6
Uncomment section to run catalyst with --purgeonly
...
svn path=/trunk/; revision=601
2008-12-22 04:52:31 +00:00
Andrew Gaffney
b38c114692
That \1 is no longer needed
...
svn path=/trunk/; revision=598
2008-12-02 23:06:47 +00:00
Andrew Gaffney
a3f0c6821a
Change the handling of version_stamp a bit to preserve the existing prefix, such as hardened-
...
svn path=/trunk/; revision=597
2008-12-02 23:03:57 +00:00
Andrew Gaffney
feff7ba1fa
Add support for OPTIONAL_SPECS and purging
...
svn path=/trunk/; revision=591
2008-11-29 02:15:02 +00:00
Andrew Gaffney
6ce21e12ac
Make sure we don't mangle the source_subpath on our stage1 spec
...
svn path=/trunk/; revision=589
2008-11-05 01:47:53 +00:00
Andrew Gaffney
4d2fb14c2f
Add --keep-tmpdir option
...
Move tailing of logfile to send_email() function
svn path=/trunk/; revision=581
2008-09-28 20:15:21 +00:00
Andrew Gaffney
a4e4d1ed17
Add another sed to add the datestamp to the ISO name
...
svn path=/trunk/; revision=580
2008-09-28 19:47:57 +00:00
Andrew Gaffney
46d164baab
Move pre_build() call after creation of dirs
...
svn path=/trunk/; revision=576
2008-09-28 04:39:45 +00:00
Andrew Gaffney
4333ff11e4
Add pre_build() and post_build() support
...
svn path=/trunk/; revision=575
2008-09-28 04:31:49 +00:00
Andrew Gaffney
117f098842
Copy kconfigs and mangle path in spec
...
svn path=/trunk/; revision=573
2008-09-04 12:44:33 +00:00
Andrew Gaffney
1199ff88ac
Exit if snapshot creation fails
...
svn path=/trunk/; revision=572
2008-09-04 02:33:23 +00:00
Andrew Gaffney
10dbf767ff
Enable the build functionality
...
svn path=/trunk/; revision=570
2008-09-04 02:25:34 +00:00
Andrew Gaffney
b9429ffe3d
Remove globbing support as it can't guarantee ordering
...
svn path=/trunk/; revision=568
2008-09-04 02:17:27 +00:00
Andrew Gaffney
cd5870e210
Add a bit of extra verbosity
...
svn path=/trunk/; revision=567
2008-09-04 02:11:48 +00:00
Andrew Gaffney
3061d4f53c
Remove tmpdir when finished
...
svn path=/trunk/; revision=566
2008-09-04 02:07:52 +00:00
Andrew Gaffney
611f864053
Add code to modify copied specs and create snapshot
...
svn path=/trunk/; revision=565
2008-09-04 01:54:15 +00:00
Andrew Gaffney
80dc45a55b
foo
...
svn path=/trunk/; revision=564
2008-09-04 01:19:35 +00:00
Andrew Gaffney
195ddceed9
Initial commit of catalyst-auto script
...
svn path=/trunk/; revision=563
2008-09-04 01:18:17 +00:00