9696 add /etc/system.d support

Review Request #1412 — Created Jan. 29, 2019 and submitted

citrus
illumos-gate
master
9696
19097dc...
general

From Nexenta - originally submitted for RTI at https://illumos.topicbox.com/groups/advocates/T9f9b1956935d5d72/rti-9696-add-etc-system-d-support

I've added documentation updates and support for overriding the /etc/system.d/ fragments via boot -a so am returning this for further review.

My updates are in the second diff.



  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
citrus
hans
  1. 
      
  2. usr/src/cmd/boot/bootadm/bootadm.c (Diff revision 2)
     
     

    .self-assembly

  3. 
      
citrus
hans
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. 
      
  2. usr/src/cmd/boot/bootadm/bootadm.c (Diff revision 3)
     
     

    Is it worth it to unlink() here on error, or perhaps preferably to do a preliminary unlink() before the loop above? If "failed to rename file" can occur, it seems there can be litter of a .self-assembly.PID file.

    1. Yes, there should be an unlink() to be sure we do not append to a stale file - added, thanks.
      I don't think it's worth adding the unlink in the error case since if this happens then the file might help diagnose why the rename failed.

  3. 
      
citrus
ptribble
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. LGTM

  2. 
      
hans
  1. Ship It!
  2. 
      
tsoome
  1. Ship It!
  2. 
      
citrus
Review request changed

Status: Closed (submitted)

Loading...