aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
Commit message (Collapse)AuthorAgeFilesLines
* iurt: Use the target dir when rebuilding chrootPascal Terjan2023-12-031-25/+16
| | | | | Currently we when building a tmpdir, making a tar of it, deleting it and then untar into the target.
* iurt: Make generation of the chroot archive more atomicPascal Terjan2023-11-291-0/+8
| | | | | We may still use the wrong chroot but at least the .tar shoudl not be corrupted.
* iurt: Fix / of the chroot belonging to the user instead of rootPascal Terjan2023-11-261-10/+9
|
* fix calling clean_chroot()Thierry Vignaud2022-06-111-1/+1
| | | | | | | The call wasn't matching the function signature thus breaking cleaning chroots. Bug introducted in commit 69e74732d254c75adc20afc25a8729ca568be832 I wonder why nobody saw it before ??
* Do not add media twicePascal Terjan2020-11-291-8/+0
|
* Always use urpmi --urpmi-rootPascal Terjan2020-11-291-13/+8
|
* Move the updating of packages laterPascal Terjan2020-06-151-5/+0
| | | | | The creation of chroot is a mess with various retries, so do it as late as possible when there is no way something gets changed again.
* Revert "Move updating the chroot to the right place"Pascal Terjan2020-06-151-5/+5
| | | | | | This reverts commit fe9d5b05cada63b4aa30b71401456263a3b511f1. It actually made things worse, this code is really a maze.
* Move updating the chroot to the right placePascal Terjan2020-06-151-5/+5
|
* Update packages after creating chrootPascal Terjan2020-06-141-0/+5
| | | | | This is useful when building for updates_testing or with additional media as basesystem/urpmi/... were installed without those media.
* Unmount things when additional media failPascal Terjan2020-06-141-1/+5
|
* Kill processes before unmounting in clean_chrootPascal Terjan2018-10-161-5/+3
|
* fix checking if chroot needs updatingThierry Vignaud2017-10-151-1/+0
| | | | | | | | | commit a1e34113fcb9538ad8a29eec80075dff04253068 wrongly made check_chroot_need_update() to always return 0, thus skipping all tests... This makde build system using old chroots, thus breaking some package builds
* Do not create network namespace when crating chroot failed (broken by ↵Pascal Terjan2017-10-131-1/+1
| | | | previous commit)
* Change use_netns to allow per package settingPascal Terjan2017-10-131-7/+7
|
* Add an option to disable netnsPascal Terjan2017-10-041-1/+1
|
* Fix creating new reference chrootPascal Terjan2017-10-041-1/+3
|
* (install_packages) kill unused argThierry Vignaud2017-10-041-1/+0
|
* Use a network namespace for buildsPascal Terjan2017-10-031-0/+6
|
* Allow not checking chroot freshnessPascal Terjan2017-10-021-1/+3
| | | | | This is useful to improve performance for for autobuild where we build all packages on a snapshot of the distribution.
* Create /etc/rpm to be able to dump macros before installing basesystemPascal Terjan2017-08-311-1/+1
|
* kill useless argumentThierry Vignaud2016-10-141-1/+1
|
* Write macros to /etc/rpm/macrosPascal Terjan2016-10-141-4/+1
| | | | None is user specific and install_lang will only work there.
* Force installing all translationsPascal Terjan2015-11-161-0/+1
|
* mkpath is not used in this moduleThierry Vignaud2014-04-301-1/+0
|
* simplify using cat*()Thierry Vignaud2014-04-191-3/+1
|
* Replace a call to sudo chroot with iurt_root_commandPascal Terjan2014-01-191-3/+1
|
* Replace a call to sudo mkdir with iurt_root_commandPascal Terjan2014-01-191-1/+1
|
* Use unique tmpfile for dumping macros, if several iurt create/remove ↵Pascal Terjan2013-01-191-1/+1
| | | | /tmp/rpmmacros things will fail sometimes
* - fix check_chroot_need_update which was always telling to rebuild the chroot,Arnaud Patard2012-12-141-0/+1
| | | | | | due to urpmi not being able to write to $urpmi_root/tmp some temp files (thus returning an empty package list).
* Get rid of cachePascal Terjan2012-12-101-1/+0
|
* use rpmbuild/ rather than rpm/ like modern guidelinesThierry Vignaud2012-09-251-3/+3
| | | | (need invalidating chroots)
* Mount /dev/shm as tmpfsPascal Terjan2012-09-191-1/+1
|
* mount /dev/shm as --bind like other mount points (mga#7329)Thierry Vignaud2012-09-121-1/+1
| | | | else it can result in sudo asking password
* fix check_chroot_need_update "regression", which was always telling to rebuildArnaud Patard2012-09-071-1/+4
| | | | | | the chroot. @available_pkgs was always empty, because of trying to write the new media.cfg in /var/cache/urpmi/partial/ as user.
* For non-local media, iurt is suppressing the urpmi.cfg file while creatingArnaud Patard2012-09-051-2/+14
| | | | | | | | the chroot. This has the side effect of forcing people to use things like --chrooted-urpmi even if the iurt configuration is fine (since it managed to create the chroot). So, add media while creating the build chroot for non-local media, as long as --chrooted-urpmi has not been used.
* (clean_and_build_chroot) failing to mount /dev/pts is not a fatal errorThierry Vignaud2012-09-031-4/+1
|
* (clean_and_build_chroot) fix path on messageThierry Vignaud2012-09-021-1/+1
|
* fix import loopThierry Vignaud2012-09-011-1/+1
|
* help perl_checkerThierry Vignaud2012-08-271-1/+2
|
* kill BUG noteThierry Vignaud2012-08-271-1/+0
|
* (remove_chroot) pass missing 'config' parameter to clean_all_chroot_tmp()Thierry Vignaud2012-08-271-3/+3
| | | | | bug introduced in commit r5307 by pterjan on 2012-08-08 (was: "Initial btrfs support")
* (clean_all_chroot_tmp) add a BUG/FIXME noteThierry Vignaud2012-08-271-0/+1
| | | | | $config parameter was added in commit r5307 by pterjan on 2012-08-08 but is never passed!
* (remove_chroot) kill useless parameter than previously makes '$prefix'Thierry Vignaud2012-08-271-1/+1
| | | | | | | parameter not used (bug!!!) bug introduced in commit r5307 by pterjan on 2012-08-08 (was: "Initial btrfs support")
* (clean_chroot) update signatures in doc regarding parametersThierry Vignaud2012-08-271-2/+2
|
* (clean_chroot) we can now kill one more useless argumentThierry Vignaud2012-08-271-2/+2
|
* (clean_and_build_chroot) split it out of clean_chroot()Thierry Vignaud2012-08-271-5/+20
| | | | | | => one less argument to clean_chroot() (death to warlism where one add parameters to functions to make them change behaviour depending on them...)
* sort exported funcsThierry Vignaud2012-08-271-3/+3
|
* (clean_chroot) log not cleaning chroots due mount points still being thereThierry Vignaud2012-08-271-0/+1
|
* mount /dev/shm in chroots too (needed for eg: python)Thierry Vignaud2012-08-271-1/+8
|