-
Notifications
You must be signed in to change notification settings - Fork 53
Autorun workflow not blessing target volume #122
Comments
You're in the right place. Actual blessing happens https://github.com/grahamgilbert/imagr/blob/master/Imagr/MainController.py#L1110-L1118 Not sure why it's failing, I'm not seeing anything obvious. Are you renaming the volume via your asr restore? That shouldn't affect it, but I'm grasping at straws... |
Seeing the same issue here. |
Setting <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>password</key>
<string>b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b46df5f1326af5a2ea6d103fd07c95385ffab0cacbc86</string>
<key>workflows</key>
<array>
<dict>
<key>name</key>
<string>Munki ElCap</string>
<key>description</key>
<string>Deploys a 10.11.3 image with Munki Tools and its configuration.</string>
<key>components</key>
<array>
<dict>
<key>type</key>
<string>image</string>
<key>url</key>
<string>http://imagr/dmgs/production-10.11.3-15D21.hfs.dmg</string>
</dict>
</array>
<key>restart_action</key>
<string>restart</string>
<key>bless_target</key>
<true/>
</dict>
</array>
</dict>
</plist> |
FWIW, I'm seeing this too. |
I don't have access to physical test hardware at the moment and this is pretty hard to troubleshoot in VMs. I would really really appreciate help here. |
Hey @grahamgilbert I'm testing this out this morning. I am using an AutoImgrNBI built image, built from 10.11.3, to install; here's what I'm seeing. When the workflow is done, I have it restart. I immediately see the "blinking globe", which due to issues with our networking config at the moment doesn't actually work. After not too long it times out and then boots the imaged volume (and annoyingly it does not skip the setup assistant, despite that being part of the AutoImagrNBI). I have tried adding the |
I stripped the workflow down to just the components listed as working by @chilcote, and it still doesn't boot to the correct volume. I'm going to try using a different OS X installer next. |
Okay-last one: I could not get the bless to work at all with AutoImagrNBIs. I switched to just using the Imagr make and it blesses with both having and not having a name component. |
So a problem with AutoImagrNBI? What say you @macmule ? |
@grahamgilbert, AutoImagrNBI creates an OS based on an OS.dmg. The EFI is the same as a booted Mac, maybe this is SIP's bless change. Recently this came up on Slack. Is bless needed if installing an OS via ASR? |
FWIW, AutoCasperNBI does not have have this issue. Casper Imaging might have at some point, but JAMF resolved. Not trolling, just mentioning as the NBI creation in both AutoImagrNBI & AutoCasperNBI is the same. |
Depends. If you've netbooted using the N key, I don't think so, but if you've chosen the startup disk or some other way of remote netbooting you probably would. |
https://macadmins.slack.com/archives/general/p1457112572011685 Seems like systemsetup might be the solution. |
Now we're cooking with gas. Hopefully this is in NBI's made with AutoNBI. |
I'm having to bless and then option boot because the Netinstall service isn't showing up in Startup Disk for me right now. |
If:
"bless" won't be able to set the startup disk. |
@gregneagle, yep it's the normal SIP enabled kernel. I suppose I could pull the kernel from the Recovery partition of the OS.dmg supplied when creating the NBI. I haven't yet as haven't had good cause to, well maybe I do. |
I'd say that's good cause. |
Yea. AutoImagrNBI needs some love. My plan was 1 release to bring it on par with ACNBI. Then another to add the new things for Imagr. I guess I should crack on with it. |
All satisfied that this isn't an Imagr issue then? |
Not sure about that, when I reported the issue above, I was using AutoNBI. |
We need to confirm that a 10.11.x AutoNBI boot image has the SIP-disabled kernel. I believe that is the case, but I have not checked/confirmed that it does. |
I can confirm that since AutoNBI calls the Apple-provided scripts in the SIU XPC helper the NBI created by it contains the To check:
|
Just to be clear, the problem I originally reported wasn't due to SIP. If SIP precluded Not saying there isn't a different problem, but that's not why this issue was submitted. I hope to have some time to test tomorrow. |
I'd say it's still worth verifying. Can bless be used by hand in an autoimagrnbi nbi? Sent from my iPhone On Wed, Mar 9, 2016 at 12:49 PM -0800, "macmule" notifications@github.com wrote: Right, given the above from @chilcote & @groob mentioning using AutoNBI... I'm leaving AutoImagrNBI using a SIP enabled EFI as don't think that change will help this issue. — |
If SIP was the issue. AutoImagrNBI created Images would never have worked when running 10.11. Either via a NetBoot or USB. What @chilcote is saying is that with AutoNBI (non-SIP enabled), some workflows fail.. Others do not. If we can get it working 100% under a non-SIP enabled environment like a NetInstall, then I can test AutoImagrNBI. Regards, Ben.
|
So this issue has kind of gone all over the place trying to determine what the root issue is. I'll try to summary the main points below. Description of Issue/QuestionThe root issue is El Captain's new interaction with the
The However, the Setup
Steps to Reproduce IssueFull error logging from a NBICreator NBI that has SIP disabled - blessing_error.txt You can reproduce the issue with the attached # This fails
/usr/sbin/bless --device disk0s2 --setBoot --verbose
# This works
/usr/sbin/bless --mount "/Volumes/Macintosh HD" --setBoot --verbose
NOTE: to verify that the target is being properly set you need to use:
Versions ReportImagr current (1.1.1) and all past versions when using 10.11 as the NBI boot source. The FixWe should modify Imagr to always call |
Good work. Looks like a reasonably simple fix thankfully. I'll try to nail this during my airport time this week. |
Oddly enough I have a base image that auto runs and have not seen this on virtual and physical machines. The image is literally an AutoDMG 10.11.5 base. No first boot package. Using AutoNBI though.
|
Never mind, I saw the other thread. I have a restart action (shutdown).
|
Alright, just pushed the code that makes the changes @clburlison suggested. It's working ok here (i.e. not crashing). I won't have real hardware to test on until next week now, so would appreciate if someone could test and see if it's been resolved. |
This has been resolved for me. Hopefully someone else can verify. |
I can verify that this fixes the issue. Thanks @clburlison and crew! |
Trying out the new autorun settings, and I've run into an issue with the target volume not being blessed.
My objective is to trigger a netboot and autorun image workflow by running
bless --netboot --server bsdp://xx.xx.xx.xxx
on the client, and to not have any firstboot scripts run (no LoginLog; no extra reboot).If I strip down the imagr_config.plist to contain only the
type
andurl
keys under components, the system will not successfully bless the target volume.However, if I include the
computer_name
key under components, it will successfully bless the target volume.Looking through the code, I can't figure out where this is failing. I'm guessing it's in this block: https://github.com/grahamgilbert/imagr/blob/master/Imagr/MainController.py#L501-L518. But it seems to me that
self.blessTarget
should be True with either of these plists: https://gist.github.com/chilcote/318a5dbdf4a05981d23aSteps to reproduce:
bless --netboot --server bsdp://xx.xx.xx.xxx
Expected result:
It should boot to the internal volume
Actual result:
It boots to the netboot server again (
nvram -p
shows theefi-boot-device
settings still have the netboot server info)If I use the imagr_config.plist linked ("imagr_autorun_succeed") it works.
My Imagr.nbi is being created with the latest build Makefile, and using a 10.11.3 install app as the source.
I can't find anything interesting in system.log when netbooted either.
If you can point me in the right direction I can test and submit a PR perhaps.
The text was updated successfully, but these errors were encountered: