You are not logged in.

Announcement

[2017.09.08] DeployStudio build v1.7.8 (checksum, release note).
[2016.08.26] DeployStudio build v1.6.19 (release note).
[2013.02.23] DeployStudio last universal build v1.5.17 (release note).

#1 2017-09-08 17:41:41

MichalM.Mac
Member
Registered: 2014-07-27

DSR autorestart is messing with my nvram boot device

Situation looks like this:
- DeployStudio Runtime and Server 1.7.6 (Haven't tried 1.7.7 yet).
- Computer boots from DeployStudio NetBoot set.
- DS NetBoot set was configured to restart the Mac after successful workflow completion
- There is a default workflow running simple generic task (shell script)
- Shell script use bless to set Mac to boot from rEFInd on FAT partition /usr/sbin/bless --setBoot --shortform --mount "/Volumes/REFIND" --file "/Volumes/REFIND/EFI/refind/refind_x64.efi"

Case 1 FAIL every time
- Mac boots from DeployStudio NetBoot set
- Shell scripts runs automatically
- Mac is automatically restarted
- Folder with question mark. Mac is unable to boot. When I run nvram -p  afterwards efi-boot-device BLLastBSDName is disk0 and IOPathMatch is set.

Case 2 SUCCESS every time
- Mac boots from DeployStudio NetBoot set
- Shell scripts runs automatically
- Mac is manually restarted by user via Apple -> Restart before autorestart occurs (or is prevented by returning to list of workflows)
- Mac boots from rEFInd without any issues

Offline

#2 2017-09-18 16:37:04

MichalM.Mac
Member
Registered: 2014-07-27

Re: DSR autorestart is messing with my nvram boot device

Same problem with 1.7.8.
I booted from DS NetBoot set. Run single script which only uses single command "csrutil netboot add server". After DeployStudio autorestatic restart efi-boot-device was reconfigured.

Current workaround. Add simple script with reboot command at the end of each workflow...

Offline

#3 2018-03-02 11:48:10

ASR
Member
Registered: 2015-11-13

Re: DSR autorestart is messing with my nvram boot device

Hi,

I've the same problem

OSX 10.13.3
SERVER 5.5
DS 1.7.8

After lauching a workflow on a client, If I do nothing, when It restart, I've got Folder with question mark.
In the Log, at the end of the task:

2018-03-02 10:00:27.566 DeployStudio Runtime.bin[358:8693] /usr/sbin/bless --device /dev/disk0 --setBoot --verbose 2>&1
2018-03-02 10:00:29.705 DeployStudio Runtime.bin[358:8693] EFI found at IODeviceTree:/efi
2018-03-02 10:00:29.706 DeployStudio Runtime.bin[358:8693] found ioreg "FirmwareFeaturesMask"; featureMaskValue=0xFF1FFF3F
2018-03-02 10:00:29.706 DeployStudio Runtime.bin[358:8693] found ioreg "FirmwareFeatures"; featureFlagsValue=0xF90FF537
2018-03-02 10:00:29.707 DeployStudio Runtime.bin[358:8693] isPreBootEnvironmentUEFIWindowsBootCapable=1
2018-03-02 10:00:29.707 DeployStudio Runtime.bin[358:8693] given BSD is not a DVD disc medium
2018-03-02 10:00:29.707 DeployStudio Runtime.bin[358:8693] isDVDWithElToritoWithUEFIBootableOS=0
2018-03-02 10:00:29.707 DeployStudio Runtime.bin[358:8693] Checking if disk is complex (if it is associated with booter partitions)
2018-03-02 10:00:29.710 DeployStudio Runtime.bin[358:8693] Preferred system partition found: disk0s1
2018-03-02 10:00:29.711 DeployStudio Runtime.bin[358:8693] Returning booter information dictionary:
2018-03-02 10:00:29.711 DeployStudio Runtime.bin[358:8693] <CFBasicHash 0x7f9806d0ede0 [0x1096c9980]>{type = mutable dict, count = 3,
2018-03-02 10:00:29.711 DeployStudio Runtime.bin[358:8693] entries =>
2018-03-02 10:00:29.711 DeployStudio Runtime.bin[358:8693]      0 : <CFString 0x108fc8ad0 [0x1096c9980]>{contents = "System Partitions"} = (
2018-03-02 10:00:29.711 DeployStudio Runtime.bin[358:8693]     disk0s1
2018-03-02 10:00:29.711 DeployStudio Runtime.bin[358:8693] )
2018-03-02 10:00:29.711 DeployStudio Runtime.bin[358:8693]      1 : <CFString 0x108fc92b0 [0x1096c9980]>{contents = "Data Partitions"} = (
2018-03-02 10:00:29.712 DeployStudio Runtime.bin[358:8693]     disk0
2018-03-02 10:00:29.712 DeployStudio Runtime.bin[358:8693] )
2018-03-02 10:00:29.712 DeployStudio Runtime.bin[358:8693]      2 : <CFString 0x108fc92d0 [0x1096c9980]>{contents = "Auxiliary Partitions"} = (
2018-03-02 10:00:29.712 DeployStudio Runtime.bin[358:8693] )
2018-03-02 10:00:29.712 DeployStudio Runtime.bin[358:8693] }
2018-03-02 10:00:29.712 DeployStudio Runtime.bin[358:8693] IOMedia disk0 does not have a partition UUID
2018-03-02 10:00:29.713 DeployStudio Runtime.bin[358:8693] IOMedia disk0 does not have a Volume UUID
2018-03-02 10:00:29.713 DeployStudio Runtime.bin[358:8693] IOMedia disk0 has path IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:0
2018-03-02 10:00:29.713 DeployStudio Runtime.bin[358:8693] Setting EFI NVRAM:
2018-03-02 10:00:29.713 DeployStudio Runtime.bin[358:8693]      efi-boot-device='<array><dict><key>IOMatch</key><dict><key>IOProviderClass</key><string>IOMedia</string><key>IOPathMatch</key><string>IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0/@0:0</string></dict><key>BLLastBSDName</key><string>disk0</string></dict></array>'
2018-03-02 10:00:29.724 DeployStudio Runtime.bin[358:8693] Setting EFI NVRAM:
2018-03-02 10:00:29.725 DeployStudio Runtime.bin[358:8693]      IONVRAM-DELETE-PROPERTY='efi-boot-file'
2018-03-02 10:00:29.725 DeployStudio Runtime.bin[358:8693] Setting EFI NVRAM:
2018-03-02 10:00:29.725 DeployStudio Runtime.bin[358:8693]      IONVRAM-DELETE-PROPERTY='efi-boot-mkext'
2018-03-02 10:00:29.725 DeployStudio Runtime.bin[358:8693] Setting EFI NVRAM:
2018-03-02 10:00:29.725 DeployStudio Runtime.bin[358:8693]      IONVRAM-DELETE-PROPERTY='efi-boot-kernelcache'
2018-03-02 10:00:29.725 DeployStudio Runtime.bin[358:8693] NVRAM variable "boot-args" not set.
2018-03-02 10:00:29.733 DeployStudio Runtime.bin[358:8693] Umounting repository share point...
2018-03-02 10:00:29.733 DeployStudio Runtime.bin[358:8693] /sbin/umount -f /tmp/DSNetworkRepository 2>&1
2018-03-02 10:00:30.249 DeployStudio Runtime.bin[358:8693] /bin/rmdir /tmp/DSNetworkRepository 2>&1

If I click on "Select Another Workflow" at the end of the workflow, and then I restart the Mac, there is no problem, It reboot normaly (no trace of bless in the log)

As you say, current workaround is to add simple script with reboot command at the end of each workflow

I saw other thread about this issue, but no solution.

Offline

Board footer

Powered by FluxBB