summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
Commit message (Collapse)AuthorAgeFilesLines
* Parse as YAML if not valid JSONRichard Maw2013-01-221-1/+1
| | | | | Tests are currently broken, one because invalid JSON can be valid YAML, and coverage is incomplete.
* Merge branch 'jjardon/python_compatibility_fixes' of ↵Richard Maw2013-01-211-0/+2
| | | | | | | | | | ssh://git.baserock.org/baserock/baserock/morph This includes the following fixups: - altering the bootstrap script to install ordereddict and simplejson. - Adding a comment to clarify that it is intentional to use simplejson if collections does not have OrderedDict - Amending the copyright years to include 2013
* Fix up run-bootstrap-in-chroot for tarball fixDaniel Silverstone2012-09-261-1/+1
|
* Allow setting ARCH explicitly for bootstrappingSam Thursfield2012-08-221-1/+13
| | | | | This is required to bootstrap on Fedora, where debootstrap fails to autodetect the architecture due to dpkg not being present.
* Merge remote branch 'origin/baserock/bugfix/S3436-fix-bootstrap-rebase2'Lars Wirzenius2012-07-121-12/+9
|\ | | | | | | Split a few long lines into shorter ones to make ./check pass.
| * bootstrap: manually install cliapp in squeeze chrootRichard Maw2012-07-111-12/+6
|/ | | | | | | | | Cliapp for arm isn't maintained, so build it from source every time rather than rely on the .deb This also removes the out-dated comment about installing a newer version of tar. This tar didn't work on some ARM architectures and wasn't needed, since we don't support building over NFS any more.
* bootstrap: don't install newer tarRichard Maw2012-06-251-1/+1
| | | | | | | | | This somehow just sits there chewing CPU. It was included to allow for extracting tarballs to NFS, which the stable version of GNU tar has problems with. We don't do this any more, so it should be safe to use the standard debian squeeze tar.
* bootstrap: remove file copy outputRichard Maw2012-04-111-1/+1
| | | | | | When bootstrap updated morph it printed every file which moved, given this is a git repository, a lot of objects get listed. This made it harder to find real problems, so it is now removed.
* Merge branch 'master' of gitorious.org:baserock/morphLars Wirzenius2012-03-221-4/+4
|\
| * run-bootstrap-in-chroot: include all packagesRichard Maw2012-03-221-4/+4
| | | | | | | | | | | | | | | | | | --include sets a list of packages to append, instead of appending the packages given to the list to install. Only the last --include is used, so add it all at once. I think it looks nicer to build up the list of packages first, rather than break the indentation
* | Allow apt to work even if it finds new packages to installLars Wirzenius2012-03-211-1/+1
|/ | | | | By default, apt will ask the user yes/no, but we want it to assume the user answered yes.
* bootstrap: alter chroot hostname after debootstrapRichard Maw2012-03-211-7/+8
| | | | | | | | It is possible that the hostname setting code will be reached without squeeze-chroot being extracted, so /etc won't exist Since this will be overwritten by later snapshot values anyway this step may as well only be done while making the squeeze chroot
* bootstrap: don't always build or extract squeezeRichard Maw2012-03-211-25/+26
| | | | | | If there are later snapshots available, we should not extract the squeeze chroot. This follows similar logic to the rest of the build stages.
* Fix copying of files into chroot to exclude snapshot tarballsLars Wirzenius2012-03-201-1/+1
|
* formatting: fix overly wide codeRichard Maw2012-03-191-1/+2
|
* Merge remote branch 'origin/master' into rm/morph-pass1Richard Maw2012-03-191-1/+7
|\
| * Allow the bootstrap work area to be inside the morph source treeLars Wirzenius2012-03-191-1/+7
| | | | | | | | | | | | | | This will be useful for Jenkins jobs, so that we can have the bootstrap test job build in the Jenkins workarea. And that is useful for artifact archival and inspecting the bootstrap work tree after a failure via the Jenkins interface.
* | Revert "bootstrap: add curl and headers for git"Richard Maw2012-03-191-1/+1
| | | | | | | | | | | | | | | | This reverts commit cc2690e9f864ecbcb7d1db6dbe97aa386f8c1a3a. The programs and libraries need to be installed in PREFIX as the gcc in /tree/tools/bin will be used, and that searches in its prefix for libraries, headers and support programs.
* | bootstrap: add curl and headers for gitRichard Maw2012-03-191-1/+1
| | | | | | | | | | | | Git's build depends on curl and openssl headers the openssl dependency can be broken, but curl is needed and curl can be built to use openssl anyway
* | Merge remote branch 'origin/master' into rm/morph-pass1Richard Maw2012-03-161-2/+2
|\ \ | |/
| * tar: add -h option to extractionRichard Maw2012-03-161-2/+2
| | | | | | | | | | | | This should stop tar from replacing symbolic links with directories and instead follow the symbolic links, extracting the files into the linked directories
* | bootstrap: add gperf to debian chrootRichard Maw2012-03-161-1/+1
| |
* | bootstrap: re-add code.liw.fi for cliappRichard Maw2012-03-161-0/+2
| | | | | | | | | | | | cliapp is needed in the squeeze-chroot and it is already available from code.liw.fi, so re-add code.liw.fi to sources.list as it is not required to be in debrock
* | Merge branch 'master' into rm/morph-pass1-mergeRichard Maw2012-03-161-3/+2
|\ \ | |/
| * Make bootstrap use the new Baserock apt repository instead of code.liw.fiLars Wirzenius2012-03-151-4/+2
| | | | | | | | This is only needed for the backport tar package, for the bootstrap.
* | bootstrap: stop downloading lfs tarballsRichard Maw2012-03-151-10/+1
| |
* | bootstrap: set tempdir and install flexRichard Maw2012-03-151-1/+1
| | | | | | | | | | | | | | flex is needed in binutils tempdir needs to be set as binutils' install script expects the files to be in an absolute path also use $LFS in paths
* | bootstrap: more passes and keep cacheRichard Maw2012-03-151-4/+16
| | | | | | | | | | | | baserock-bootstrap: set cachedir so that the git cache can be reused in pass 2 onwards run-bootstrap-in-chroot: add more passes
* | bootstrap: convert pass1 to use morphRichard Maw2012-03-151-1/+1
|/ | | | | | | | | | | | run-bootstrap-in-chroot: add cliapp to squeeze-chroot baserock-bootstrap: * remove use of sudo, the script expects to be run with sufficient privilidges * remove multiple unused variables and functions * replace the build instructions with a call to morph with a stratum that should have all the required programs with --prefix and --toolchain-target set
* Fix quotes and ccache preparation for real.Jannis Pohlmann2012-03-091-10/+10
|
* Use the correct base directory to create the ccache chroot dir.Jannis Pohlmann2012-03-091-1/+1
|
* Create the ccache directory in the right place.Jannis Pohlmann2012-03-091-9/+9
|
* Make sure to create parent directories of the chroot ccache dir.Jannis Pohlmann2012-03-091-1/+1
|
* Fix a syntax error.Jannis Pohlmann2012-03-091-1/+1
|
* Add untested support for ccache through the CCACHE_HOST_DIR variable.Jannis Pohlmann2012-03-091-4/+21
| | | | | | | This variable can optionally be set outside the squeeze chroot (that is, outside the run-bootstrap-in-chroot script. The directory is then bind mounted into the chroot and baserock-bootstrap will set its CCACHE_DIR to the location inside the chroot.
* Make ./check check for long lines (with excptions); fix long linesLars Wirzenius2012-02-271-2/+0
|
* scripts: don't skip if not snapshottingRichard Maw2012-02-271-2/+2
| | | | | | | | | | | | run-bootstrap-in-chroot would not build a stage if it had a snapshot for the next stage. If the same directory had previously run while snapshotting then it would skip earlier stages without building them as it used to be able to extract that tarball. This fails as stages depend on earlier stages. This change is so that it will build if it is not snapshotting or if the stage has not been snapshotted.
* scripts: allow running without snapshotsRichard Maw2012-02-271-4/+4
| | | | | | | | Set the #! to bash, as it uses bashisms Everywhere where it would try to run tar has a check for $snapshot Allows the snapshot variable to be set in the environment for the script to use that, it seemed easier than adding an option Use run_pass for stage 3 since it can have snapshotting disabled
* Export TMPDIR to avoid confusion.Jannis Pohlmann2012-02-211-1/+1
| | | | | | If the TMPDIR variable is not yet set, then setting it without exporting will not make it available to child processes. Thus, let's just make sure we export it and everyone will be happy.
* Clear the TMPDIR variable when entering the chroot.Jannis Pohlmann2012-02-211-0/+4
|
* Add tar 1.26 from code.liw.fi to the squeeze chroot for bootstrappingLars Wirzenius2012-02-201-0/+10
|
* Update morph and related stuff after unpacking a snapshotLars Wirzenius2012-02-161-9/+11
|
* Skip unpacking earlier passes when later snapshots existLars Wirzenius2012-02-161-7/+30
|
* Simplify bootstrap dir tree; split pass2 into two partsLars Wirzenius2012-02-161-26/+23
|
* Actually make it compressedLars Wirzenius2012-02-151-1/+1
|
* Make chroot snapshot also compressedLars Wirzenius2012-02-151-3/+4
|
* Compress pass1 and pass2 snapshotsLars Wirzenius2012-02-151-6/+8
|
* When unmounting proc, sys, also unmount them from the inner chrootLars Wirzenius2012-02-141-0/+2
|
* Make run-bootstrap-in-chroot snapshot pass2Lars Wirzenius2012-02-141-4/+20
| | | | | | This changes the meaning of $1 for baserock-bootstrap: $1 now specifies which pass to run. When building passX, X > 1, the previous passes are assumed to have been built successfully.
* scripts: use EXIT traps to unmountRichard Maw2012-02-141-2/+2
| | | | | | | | | | | Jenkins failed to build because proc and sys were still mounted after a forced termination of a build. The exit traps will be run when the shell exits, so there are fewer code paths that can avoid unmounting EXIT is not the only signal that can be used INT and TERM will be executed when Interrupted (by ^C) or Terminated (by kill)