[Bug 290393] 15.0-BETA2: pkg blocks boot process waiting for console input

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 02 Nov 2025 11:55:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290393

--- Comment #3 from Jimmy Olgeni <olgeni@FreeBSD.org> ---
I tried with both an empty #!/bin/sh script and with no script: in the no
script case nuageinit crashes on PR 290395 so it's something that comes far
later in the process.

Looks like freebsd-update is not passing -y to bootstrap:

===
Updating motd:/etc/rc: DEBUG: checkjesno: rc_startmsgs is set to YES.
/etc/rc: DEBUG: checkjesno: nuageinit_enable is set to YES.
/etc/rc: DEBUG: checkjesno: nuageinit_post_net_svc_j is set to NO.
/etc/rc: DEBUG: run_rc_command: doit: _execute_post_net
/usr/libexec/flua: /usr/libexec/nuageinit:716: attempt to index a nil value
(loc
al 'line')
stack traceback:
    /usr/libexec/nuageinit:716: in main chunk
    [C]: in ?
/etc/rc: DEBUG: checkjesno: syslogd_enable is set to YES.
/etc/rc: DEBUG: run_rc_command: start_precmd: syslogd_precmd
/etc/rc: DEBUG: checkjesno: syslogd_svc_j is set to NO.
/etc/rc: DEBUG: checkjesno: rc_startmsgs is set to YES.
Starting syslogd.
/etc/rc: DEBUG: checkjesno: syslogd_svc_j is set to NO.
/etc/rc: DEBUG: run_rc_command: doit:    limits -C daemon    /usr/sbin/syslogd
-s
/etc/rc: DEBUG: checkjesno: syslogd_svc_j is set to NO.
/etc/rc: DEBUG: checkjesno: bsnmpd_enable is set to NO.
/etc/rc: DEBUG: checkjesno: firstboot_freebsd_update_enable is set to YES.
/etc/rc: DEBUG: checkjesno: firstboot_freebsd_update_svc_j is set to NO.
/etc/rc: DEBUG: run_rc_command: doit:    firstboot_freebsd_update_run | logger
-s
-t 'freebsd-update'
/etc/rc: DEBUG: checkjesno: firstboot_freebsd_update_nonstandard is set to NO.
[halts]
===

Trying on console:

===
[...]
  -j jail      -- Operate on the given jail specified by jid or name
  -k KEY       -- Trust an RSA key with SHA256 hash of KEY
  -r release   -- Target for upgrade (e.g. 13.2-RELEASE)
  -s server    -- Server from which to fetch updates
                  (default: update.FreeBSD.org)
  -t address   -- Mail output of cron command, if any, to address
                  (default: root)
  --not-running-from-cron
               -- Run without a tty, for use by automated tools
  --currently-running release
               -- Update as if currently running this release
Commands:
  fetch        -- Fetch updates from server
  cron         -- Sleep rand(3600) seconds, fetch updates, and send an
                  email if updates were found
  upgrade      -- Fetch upgrades to FreeBSD version specified via -r option
  updatesready -- Check if there are fetched updates ready to install
  install      -- Install downloaded updates or upgrades
  rollback     -- Uninstall most recently installed updates
  IDS          -- Compare the system against an index of "known good" files
  showconfig   -- Show configuration
root@freebsd-45:~ # freebsd-update fetch
[halts]
load: 0.30  cmd: pkg 4317 [ttyin] 7.20p 0.00u 0.00s 0% 8732k
[gotcha]
===

But pkg message is suppressed, so you have to guess what it's doing :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.