summary refs log tree commit diff
path: root/nixos/modules/system/activation/activation-script.nix
Commit message (Collapse)AuthorAge
* Merge branch 'master' into stagingJan Malakhovski2018-03-10
|\ | | | | | | | | | | | | | | | | | | | | Resolved the following conflicts (by carefully applying patches from the both branches since the fork point): pkgs/development/libraries/epoxy/default.nix pkgs/development/libraries/gtk+/3.x.nix pkgs/development/python-modules/asgiref/default.nix pkgs/development/python-modules/daphne/default.nix pkgs/os-specific/linux/systemd/default.nix
| * Remove creation of /dev/{fd,stdin,stdout,stderr}Eelco Dolstra2018-02-07
| | | | | | | | This is already provided by devtmpfs.
* | nixos: Move uses of stdenv.shell to runtimeShell.Shea Levy2018-03-01
|/
* activation-script service: add utillinux to pathNikolay Amiantov2017-02-17
|
* Fix #19382 set ownership of /var/empty to root:rootNathan Bijnens2016-10-09
|
* nixos/activation: Rename "tmpfs" to "specialfs"aszlig2016-09-26
| | | | | | | | | | | | Using "tmpfs" as a script part for system.activationScripts is a bit misleading since 6efcfe03ae4ef426b77a6827243433b5296613a4. We no longer solely mount tmpfs within this script, so using "specialfs" fits more nicely in terms of naming. Tested against the "simple" NixOS installer test. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/activation: Avoid remounting non-existing FSaszlig2016-09-26
| | | | | | | | | | | | | | | | | | | Regression introduced by 79d4636d506094eae3c5c7575a0bef817cba9bda. The mentioned commit moves /run/keys from stage 2 to boot.specialFileSystems, the latter being remounted during system activation. Unfortunately, the specialMount function in the activation script does this unconditionally and thus will fail if it can't be remounted because the mount point simply doesn't exist. We now check the mount point for existance and only remount if it exists but mkdir + mount it if it doesn't. Tested against the "simple" NixOS installer test. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* /var/empty: silently ignore errors (if on tmpfs) #18781Domen Kožar2016-09-21
|
* hardcode e2fsprogs, idempotent chmod, remove care conditionDomen Kožar2016-09-07
|
* Make /var/empty immutableDomen Kožar2016-09-06
| | | | | | | Fixes #14910 and #18358 Deployed to an existing server, restarted sshd and polkit to verify they don't fail.
* nixos filesystems: unify early filesystems handlingNikolay Amiantov2016-08-27
| | | | | | | | | | A new internal config option `fileSystems.<name>.early` is added to indicate that the filesystem needs to be loaded very early (i.e. in initrd). They are transformed to a shell script in `system.build.earlyMountScript` with calls to an undefined `specialMount` function, which is expected to be caller-specific. This option is used by stage-1, stage-2 and activation script to set up and remount those filesystems. Options for them are updated according to systemd defaults.
* add get* helper functions and mass-replace manual outputs search with themNikolay Amiantov2016-04-25
|
* Merge master into closure-sizeVladimír Čunát2016-03-08
|\ | | | | | | | | The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
| * nixos/activation-script: fix formatting of exampleLeroy Hopson2016-02-27
| |
* | Merge recent 'staging' into closure-sizeVladimír Čunát2016-02-03
|\| | | | | | | Let's get rid of those merge conflicts.
| * activation-script module: add environment.usrbinenv optionNathan Zadoks2016-01-19
| |
| * systemd: Use upstream tmpfiles.d rulesTuomas Tynkkynen2015-07-22
| | | | | | | | | | | | | | | | | | | | | | This fixes a failing assert in systemd-timesyncd (issue #5913) as it expects the directory /run/systemd/netif/links/ to exist, and nothing in NixOS currently creates it. Also we get a net reduction in our code as rules for /run/utmp and /var/log/journal are also provided by the same upstream file. (cherry picked from commit a278a9224a3c1c5db399d53c86b36a25133b5cda)
* | Merge commit staging+systemd into closure-sizeVladimír Čunát2015-10-03
|\ \ | | | | | | | | | Many non-conflict problems weren't (fully) resolved in this commit yet.
| * | systemd: Use upstream tmpfiles.d rulesTuomas Tynkkynen2015-06-03
| |/ | | | | | | | | | | | | | | | | This fixes a failing assert in systemd-timesyncd (issue #5913) as it expects the directory /run/systemd/netif/links/ to exist, and nothing in NixOS currently creates it. Also we get a net reduction in our code as rules for /run/utmp and /var/log/journal are also provided by the same upstream file.
* / nixos: try to fix, choosing correct binary outputsVladimír Čunát2015-05-05
|/
* Don't silently ignore errors from the activation scriptEelco Dolstra2014-08-15
|
* Don't create /mediaEelco Dolstra2014-05-21
| | | | It's obsolete - udisks2 uses /run/media/<username>.
* /var/run -> /runEelco Dolstra2014-05-09
|
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* Add some primops to libEelco Dolstra2013-11-12
|
* Remove remaining references to UpstartEelco Dolstra2013-10-31
|
* Big cleanup of the NixOS module systemEelco Dolstra2013-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The major changes are: * The evaluation is now driven by the declared options. In particular, this fixes the long-standing problem with lack of laziness of disabled option definitions. Thus, a configuration like config = mkIf false { environment.systemPackages = throw "bla"; }; will now evaluate without throwing an error. This also improves performance since we're not evaluating unused option definitions. * The implementation of properties is greatly simplified. * There is a new type constructor "submodule" that replaces "optionSet". Unlike "optionSet", "submodule" gets its option declarations as an argument, making it more like "listOf" and other type constructors. A typical use is: foo = mkOption { type = type.attrsOf (type.submodule ( { config, ... }: { bar = mkOption { ... }; xyzzy = mkOption { ... }; })); }; Existing uses of "optionSet" are automatically mapped to "submodule". * Modules are now checked for unsupported attributes: you get an error if a module contains an attribute other than "config", "options" or "imports". * The new implementation is faster and uses much less memory.
* Improve option descriptionEelco Dolstra2013-10-23
|
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10