Disable password expiry #1

Merged
sb10q merged 1 commits from adisbladis/wfvm:master into master 2020-06-29 20:48:44 +08:00
Contributor

Since we set RTC in the Nix build it's likely that any passwords have
expired since the image generation RTC time.

Ideally this should be applied in autounattend.xml but it didn't work
out either as FirstLogonCommands or as a command in the specialize pass.

Since we set RTC in the Nix build it's likely that any passwords have expired since the image generation RTC time. Ideally this should be applied in autounattend.xml but it didn't work out either as FirstLogonCommands or as a command in the specialize pass.
Owner

Thanks!

Thanks!
sb10q closed this pull request 2020-06-29 20:48:44 +08:00
Owner

Did you test it?

> nix-build demo-ssh.nix
[...]

Executing script to build layer...
/nix/store/8p9hxdck5dhpgd79b115wrhadll8kiq3-DisablePasswordExpiry-script: line 1: win: command not found
builder for '/nix/store/sfrixvy6m3i3i3nrllwz2m3bbqq30fzp-RESTRICTDIST-DisablePasswordExpiry.img.drv' failed with exit code 127
cannot build derivation '/nix/store/pdwyxdzf1k662109bnfylilkrww9dhvm-RESTRICTDIST-Anaconda3.img.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/rx3h22mhrhy3wl36n747wmbn2yrscvsw-wfvm-run-download-vs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/viczg73g6s6nyr8i4hpzr51v4y11r7g2-RESTRICTDIST-MSYS2.img.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/c53nsqi548rc5zw85mwfskidl8hkwizg-RESTRICTDIST-vs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/nbw7jwv6dnhbi7dss4r6y357l89h0sjs-RESTRICTDIST-MSVC.img.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w57ca669w2lyw9npl4364ik00ss75jcg-RESTRICTDIST-MSVC-ide-unbreak.img.drv': 1 dependencies couldn't be built
Did you test it? ```text > nix-build demo-ssh.nix [...] Executing script to build layer... /nix/store/8p9hxdck5dhpgd79b115wrhadll8kiq3-DisablePasswordExpiry-script: line 1: win: command not found builder for '/nix/store/sfrixvy6m3i3i3nrllwz2m3bbqq30fzp-RESTRICTDIST-DisablePasswordExpiry.img.drv' failed with exit code 127 cannot build derivation '/nix/store/pdwyxdzf1k662109bnfylilkrww9dhvm-RESTRICTDIST-Anaconda3.img.drv': 1 dependencies couldn't be built cannot build derivation '/nix/store/rx3h22mhrhy3wl36n747wmbn2yrscvsw-wfvm-run-download-vs.drv': 1 dependencies couldn't be built cannot build derivation '/nix/store/viczg73g6s6nyr8i4hpzr51v4y11r7g2-RESTRICTDIST-MSYS2.img.drv': 1 dependencies couldn't be built cannot build derivation '/nix/store/c53nsqi548rc5zw85mwfskidl8hkwizg-RESTRICTDIST-vs.drv': 1 dependencies couldn't be built cannot build derivation '/nix/store/nbw7jwv6dnhbi7dss4r6y357l89h0sjs-RESTRICTDIST-MSVC.img.drv': 1 dependencies couldn't be built cannot build derivation '/nix/store/w57ca669w2lyw9npl4364ik00ss75jcg-RESTRICTDIST-MSVC-ide-unbreak.img.drv': 1 dependencies couldn't be built ```
Author
Contributor

I implemented and tested it on the old code base from https://git.m-labs.hk/M-Labs/nix-scripts and only noticed the repo split after the fact.

4b497938ff should fix this, running the demo image build now.

I implemented and tested it on the old code base from https://git.m-labs.hk/M-Labs/nix-scripts and only noticed the repo split after the fact. https://git.m-labs.hk/adisbladis/wfvm/commit/4b497938ffd9fcddf84a3dbe2f01524395292adb should fix this, running the demo image build now.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/wfvm#1
No description provided.