rc.netboot typo causes diskless netboot to fail
| Originator: | brunerd | ||
| Number: | rdar://20424235 | Date Originated: | 03-04-15 |
| Status: | Duplicate | Resolved: | No |
| Product: | OS X Server | Product Version: | 10.10.3/14D130a |
| Classification: | Bug (Other) | Reproducible: | Sometimes |
Joel Bruner 03-Apr-2015 07:46 PM
Summary:
A typo exists in rc.netboot
A missing operator in a BASH variable assignment causes a NETBOOT_SHADOW to be set with the first character truncated "NETWORK-" rather than "-NETWORK-".
This has the effect of not properly matching in the case statement in do_start(). It will not use the network drive for the shadow file, but rather the local drive. Thus it is not truly diskless. In an imaging scenario makes erasing the local drive impossible.
Steps to Reproduce:
1. Create a NetBoot using System Image Utility on OS X Server
2. Set that Netboot image to be Diskless.
3. Boot a machine from that image.
Expected Results:
The server is used for the shadow file
The local drive "Macintosh HD" is unmountable.
Actual Results:
The local drive is mounted as /var/netboot
Local drive is unable to be unmounted and erased by disk utility because the shadow file is on that disk
Version:
10.10.3/14D130a
Notes:
rc.netboot line currently is:
NETBOOT_SHADOW=${NETBOOT_SHADOW:-NETWORK-}
Should be:
NETBOOT_SHADOW=${NETBOOT_SHADOW:=-NETWORK-}
or Alternately:
NETBOOT_SHADOW=${NETBOOT_SHADOW:--NETWORK-}
As a test, from Terminal:
#current setting
echo ${NETBOOT_SHADOW:-NETWORK-}
#result: NETWORK-
#correct variable setting
echo ${NETBOOT_SHADOW:=-NETWORK-}
#result: -NETWORK-
Historical context of bug:
#rc.netboot NETBOOT_SHADOW Variable Assignment Bug
http://www.macos.utah.edu/documentation/administration/setup_netboot_service_on_mac_os_x_10.6.x_client.x_client/setup_netboot_service_on_mac_os_x_10.6.x_client-diskless_netboot.html
#typo correct verified as a fix
https://jamfnation.jamfsoftware.com/discussion.html?id=7199
Configuration:
When typo is corrected, diskless works.
=======================================
Apple Developer Relations 08-Apr-2015 01:24 AM
Duplicate of 20114234 (Closed)
Engineering has determined that your bug report is a duplicate of another issue and will be closed.
The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.
=======================================
Joel Bruner 28-Apr-2015 12:49 PM
10.10.4 (14E11f ): It'd sure be nice for someone to correct this one character mistake, please.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!