Skip to content

add freebsd multi-user installer#13713

Merged
Ericson2314 merged 2 commits intoNixOS:masterfrom
Mic92:freebsd-installer
Aug 8, 2025
Merged

add freebsd multi-user installer#13713
Ericson2314 merged 2 commits intoNixOS:masterfrom
Mic92:freebsd-installer

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Aug 7, 2025

Depends on #13717

Service starts correctly:

[root@nixbsd ~]# service nix-daemon status
nix_daemon is running as pid 823.

PATH script seems to be reset by something:

[root@nixbsd ~]# echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin

Current work around is doing this:

root@nixbsd:~ # unset __ETC_PROFILE_NIX_SOURCED
root@nixbsd:~ # set +x
root@nixbsd:~ # . /etc/profile
root@nixbsd:~ # echo $PATH
/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin

I assume this is not a bug in the script per se but something in freebsd doing this.

@Mic92 Mic92 requested a review from edolstra as a code owner August 7, 2025 22:34
@Mic92 Mic92 force-pushed the freebsd-installer branch from 631097c to 05e79e4 Compare August 7, 2025 22:40
@Mic92 Mic92 changed the title add freebsd mutli-user installer add freebsd multi-user installer Aug 7, 2025
@Mic92 Mic92 requested a review from Copilot August 7, 2025 22:42

This comment was marked as outdated.

@Mic92 Mic92 force-pushed the freebsd-installer branch from 05e79e4 to 4c48bee Compare August 7, 2025 22:46
@Mic92 Mic92 force-pushed the freebsd-installer branch 2 times, most recently from 784ce6a to 537bac3 Compare August 8, 2025 06:59
@Mic92
Copy link
Member Author

Mic92 commented Aug 8, 2025

Figured it out:

root@nixbsd:~ # cat /root/.profile
#
HOME=/root
export HOME
#PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
export PATH
TERM=${TERM:-xterm}
export TERM
PAGER=less
export PAGER

# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV

# Query terminal size; useful for serial lines.
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi

# Uncomment to display a random cookie on each login.
# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi

I would like to address this issue in a different PR.
Users could for now source profile.d manually to their own .profile.

@Mic92 Mic92 force-pushed the freebsd-installer branch from 537bac3 to 7923ecd Compare August 8, 2025 07:10
@Mic92 Mic92 force-pushed the freebsd-installer branch from 7923ecd to e74cfc5 Compare August 8, 2025 07:10
@dpulls
Copy link

dpulls bot commented Aug 8, 2025

🎉 All dependencies have been resolved !

@Ericson2314 Ericson2314 merged commit bd9ce27 into NixOS:master Aug 8, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants