1. 01 Jul, 2015 1 commit
    • Franco Fichtner's avatar
      rc: add a safety sync after the recovery stage to avoid a vicious cycle · f45171e7
      Franco Fichtner authored
      The current fix now works as expected and always brings back the
      console login after an unclean shutdown, which was previously not
      happening.  A small quirk, however, is that while the base system
      recovers, the OPNsense backend on top may not fully recover directly
      after the unclean shutdown.  In those instances, a manual reboot
      will bring back the fully operational system and its services.
      
      The unclean shutdown dilemma is, however, an unavoidable occurrence
      and any kernel panic or power failure can corrupt the file system
      into an unrecoverable state.  Having snapshots or backups at hand is
      a good habit to get into, which can also 'fix' the eventual breakdown
      of a physical disk.
      
      Discussed with: ad@ jos@
      Tested by: jos@
      f45171e7
  2. 30 Jun, 2015 1 commit
    • Franco Fichtner's avatar
      rc: pimp recovery stage · 7baccb7c
      Franco Fichtner authored
      o pwd_mkdb(8)'s `-p' likely only cares about /etc/passwd
      o Regenerate for each phase, pkg(8) seems to like that
      o Also restore a clobbered /etc/shells including our root shell
      7baccb7c
  3. 29 Jun, 2015 1 commit