- This topic has 16 replies, 7 voices, and was last updated 14 years, 8 months ago by
chops.
-
AuthorPosts
-
July 15, 2010 at 8:07 pm #379102
MichaelR
ParticipantThis is the first time I’m using InstaDMG but it doesn’t seem to deliver a file in the “OutputFiles” folder.
I made a DMG of my 10.5 image and placed that image in “InstaDMG/InstallerFiles/BaseOS”.
Then I created a file named “Leopard_Choices.xml” and placed it in the same folder as my DMG. The “Leopard_Choices.xml” containts
[code]
AdditionalFonts
X11
[/code]
Then I created a “01” folder in the “BaseUpdates” folder and placed the 10.5.0 combo update in the “01” folder.
After all this I started InstaDMG with the following command “./instadmg.bash -f”. However after the script finished there are no files in the “OutputFiles” folder.The output of the screen is
[code]
iMac$ sudo ./instadmg.bash -f
21:00:57 ###### InstaDMG build initiated ######
InstaDMG version 1.6b2 (svn revision: 261)
Host OS: Mac OS X 10.5.8
Host Hardware: PowerMac8,2
Output file name: 10-07-15.dmg
Output disk name: InstaDMG
21:00:58 ###### Finding main MacOS X installer disk ######
Found primary OS installer disk: ./InstallerFiles/BaseOS/Mac OS X Install DVD.dmg
Found the image at: ./InstallerFiles/BaseOS/Mac OS X Install DVD.dmg
21:00:58 ###### Looking for a Cached Image ######
No cached image found
21:00:59 ###### Mounting Mac OS X installer image ######
Mac OS X installer image mounted
21:01:01 ###### Creating intermediary disk image ######
Target image: /private/tmp/InstaDMG_temp_folder.ivXJBW/CD498A6D-5276-48A1-99ED-57ACEA8EAF39.sparseimage mounted sucessfuly at: /tmp/mount_point.WstelQ
21:01:11 ###### Beginning Installation from /private/tmp/InstaDMG_temp_folder.ivXJBW/mount_point.nAeYc9 ######
Installing system from: /private/tmp/InstaDMG_temp_folder.ivXJBW/mount_point.nAeYc9 onto image at: /tmp/mount_point.WstelQ using language code: en
Base OS installed
Compacting and saving cached image to: ./Caches/BaseImageCache/9D2BDA7D.dmg
21:50:15 ###### Looking for a Cached Image ######
Mounting the shadow file (/private/tmp/InstaDMG_temp_folder.ivXJBW/059DF022-01A5-4119-A095-AFF466DEEA06.shadowfile) onto the cached image (./Caches/BaseImageCache/9D2BDA7D.dmg)
Target OS: Mac OS X 10.5.4 (9E25)
Encasing installd daemon in a chroot jail
cp: /System/Library/LaunchDaemons/com.apple.installd.plist: No such file or directory
launchctl: Couldn’t stat(“/System/Library/LaunchDaemons/com.apple.installd.plist”): No such file or directory
nothing found to unload
###### Unable to unload system installd daemon ######
21:50:29 ###### Cleaning up ######
Restoring normal installd daemon
launchctl: Error unloading: com.apple.installd.modified
launchctl: Couldn’t stat(“/System/Library/LaunchDaemons/com.apple.installd.plist”): No such file or directory
nothing found to load
Ejecting images
The image did not eject cleanly, so I will force it
Deleting scratch DMG
[/code]
What am I doing wrong?July 15, 2010 at 10:05 pm #379103Allister Banks
ParticipantHey Michael,
You are doing nothing wrong. There have been recent revisions that we cannot confirm symptoms of failure in 10.5 on, so for now the ‘voodoo'(not sure if its true you HAVE to do this to make it work) is:1. Use an Intel machine patched to 10.5.8(as far as I recall it will build Leopard as a universal image, so should be no concern)
2. Make sure you’ve cleanly booted the system you’re building on
3. Best practice is to use the most recent retail disc, so try to find a 10.5.6 buildBeyond that, it’s my conjecture that you shouldn’t jail the installer daemon AND put the entire process in a chroot jail, so use the -s flag in addition to the -f. Mr. Bernstein also found that not using 3-digit folders worked better for him, I had no issue besides with some custom packages. Here’s his reporting on the subject:
https://www.afp548.com/forum/viewtopic.php?showtopic=27149&lastpost=truehope that helps, Allister
July 16, 2010 at 4:29 pm #379107Ebonfyre
ParticipantActually, I think I can help a little, as this was happening to me too using svn revision 261. That revision only looks for “com.apple.installd.plist” which I cannot find anywhere on 10.5.8. Later svn revisions look for multiple versions of that installd daemon, presumably to fix exactly this problem. The trick then becomes finding a svn that includes that change and which does not break other aspects of your 10.5 build.
Currently I am successfully using svn 318 on a 10.5.8 Intel Macbook to build my instaDMG image using a 10.5.6 install disc, the 10.5.8 updates, a package to place my 4 users’ home directories in place, and a first run launchd script to actually create those users because I can’t get the “createuser” package working reliably no matter what I do.
I love this project, but it can be frustrating 😉
July 19, 2010 at 9:48 pm #379124MichaelR
ParticipantThank you all for you help. I just downloaded the last SVN (version 318) and it works great now. It only took 3,5 hours on a iMac G5 1.8GHz.
Now that I made this image I uploaded to my DeployStudio HFS masters folder. However, when I boot up another iMac G5 and start DeployStudio Runtime I can’t see the image.
The workflow works well, it creates one large partition on the disk but after that its looking for the images and it doesn’t show up in there. What could this be?July 20, 2010 at 4:33 am #379125larkost
ParticipantI don’t know what you are running into, but I can assure you that it generically works. I have put a number of InstaDMG-created images into DeployStudio this was very successfully. You do have to start up the client after you make the move since DeployStudio does not refresh the list after it has started up (meaning the clients, not the server).
July 20, 2010 at 5:53 pm #379132MichaelR
ParticipantI have created a Netboot from an iMac. This one boots just fine.
I’ve created a DSRepository folder on the server and shared this through NFS (not AFP and SMB ). I have set the NetBoot image to look at this NFS. However after booting from the NebBoot I doesn’t show any images.
Could this because of NFS and should I change it to AFP or SMB?July 20, 2010 at 5:57 pm #379133hkim823
ParticipantAlthough maybe totally unrelated, with InstaDMG and DeployStudio, I’ve found that if I don’t use the DSRuntime to “grab” the InstaDMG created image and let DeployStudio actually import the image in itself, I find that weird things can occur. I’ve never had the problem your seeing, I’ve always been able to just drag and drop images into DS, but I’ve had networking issues for some reason when deploying.
So on the computer you built the InstaDMG image on, mount said DMG file, open up DeployStudio Runtime, and then let the DeployStudio server grab the image. It seems redundent and takes a long time, but it certainly has fixed weird issues I was having.
July 20, 2010 at 8:22 pm #379136MichaelR
Participant[QUOTE][u]Quote by: hkim823[/u][p]Although maybe totally unrelated, with InstaDMG and DeployStudio, I’ve found that if I don’t use the DSRuntime to “grab” the InstaDMG created image and let DeployStudio actually import the image in itself, I find that weird things can occur. I’ve never had the problem your seeing, I’ve always been able to just drag and drop images into DS, but I’ve had networking issues for some reason when deploying.
So on the computer you built the InstaDMG image on, mount said DMG file, open up DeployStudio Runtime, and then let the DeployStudio server grab the image. It seems redundent and takes a long time, but it certainly has fixed weird issues I was having.[/p][/QUOTE]
That did the trick. What does DeployStudio do to the image why it was not working before?
July 22, 2010 at 4:16 pm #379152nobrainer
Participant[QUOTE][u]Quote by: Allister[/u][p]Hey Michael,
You are doing nothing wrong. There have been recent revisions that we cannot confirm symptoms of failure in 10.5 on, so for now the ‘voodoo'(not sure if its true you HAVE to do this to make it work) is:1. Use an Intel machine patched to 10.5.8(as far as I recall it will build Leopard as a universal image, so should be no concern)
2. Make sure you’ve cleanly booted the system you’re building on
3. Best practice is to use the most recent retail disc, so try to find a 10.5.6 buildBeyond that, it’s my conjecture that you shouldn’t jail the installer daemon AND put the entire process in a chroot jail, so use the -s flag in addition to the -f. Mr. Bernstein also found that not using 3-digit folders worked better for him, I had no issue besides with some custom packages. Here’s his reporting on the subject:
https://www.afp548.com/forum/viewtopic.php?showtopic=27149&lastpost=truehope that helps, Allister[/p][/QUOTE]
Allister,
I’m having a similar problem with my 10.5.8 build…
I did #1 and #2. I used the latest (10.5.5) disk we had.
I tried modifying the instadmg.bash file and set DISABLE_INSTALLD_CHROOT=true
Output disk name: Macintosh HD
09:10:36 ###### Finding main MacOS X installer disk ######
Found primary OS installer disk: ./InstallerFiles/BaseOS/Mac OS X Install DVD.dmg
09:10:36 ###### Looking for a Cached Image ######
Mounting the shadow file (/private/tmp/InstaDMG_temp_folder.90g87N/B6D2F972-E20B-43CD-9DF6-21DB157A0F29.shadowfile) onto the cached image (./Caches/BaseImageCache/2E725137.dmg)
2010-07-22 09:10:41.605 defaults[2894:10b]
The domain/default pair of (/private/tmp/InstaDMG_temp_folder.90g87N/mount_point.tOJXi8/System/Library/CoreServices/SystemVersion, ProductVersion) does not exist
2010-07-22 09:10:41.616 defaults[2896:10b]
The domain/default pair of (/private/tmp/InstaDMG_temp_folder.90g87N/mount_point.tOJXi8/System/Library/CoreServices/SystemVersion, ProductVersion) does not exist
2010-07-22 09:10:41.626 defaults[2898:10b]
The domain/default pair of (/private/tmp/InstaDMG_temp_folder.90g87N/mount_point.tOJXi8/System/Library/CoreServices/SystemVersion, ProductBuildVersion) does not exist
2010-07-22 09:10:41.636 defaults[2899:10b]
The domain/default pair of (/private/tmp/InstaDMG_temp_folder.90g87N/mount_point.tOJXi8/System/Library/CoreServices/SystemVersion, ProductName) does not exist
/Users/macadmin/instadmg/instadmg.bash: line 700: [: 5: unary operator expected
Target OS: ()
09:10:41 ###### Beginning Update Installs from /tmp/InstaUp2DateFolder-W85fU8 ######
Working on folder 01 Mac OS X 10.5.8 Combo Update (09:10:41)
Mounting the package dmg: MacOSXUpdCombo10.5.8 sha1-0a88c9ecfbe08faf1a2307929c67f38b4822dfcb.dmg (/tmp/InstaUp2DateFolder-W85fU8/01 Mac OS X 10.5.8 Combo Update) at: /private/tmp/InstaDMG_temp_folder.90g87N/mount_point.tOJXi8/private/tmp/mount_point.GfBL8W
###### There were no items to install in: /private/tmp/InstaDMG_temp_folder.90g87N/mount_point.tOJXi8/private/tmp/mount_point.GfBL8W ######I tried finding in the instadmg file where to put the -s but couldn’t find it… and when i put it in the terminal line for instaupd2date.py -s -10.5 vanilla (or whatever it is)… i just got an error message.
I tried to set DISABLE_CHROOT=true and I got teh same “does not exist” errors, but it appears to continue to process the patches.
Am I doing something wrong?
July 22, 2010 at 4:20 pm #379153MichaelR
Participant@nobrainer Have you tried the SVN version? That did the job for me. I didn’t use any parameters and used 10.5.4 as mine image.
July 22, 2010 at 4:26 pm #379154nobrainer
Participant[QUOTE][u]Quote by: MichaelR[/u][p]@nobrainer Have you tried the SVN version? That did the job for me. I didn’t use any parameters and used 10.5.4 as mine image.[/p][/QUOTE]
I tried a couple different, including the latest and greatest one from today.
when you say SVN, do you mean instadmg script or the whole kitten caboodle?
July 22, 2010 at 4:29 pm #379155MichaelR
Participant@nobrainer I just downloaded the whole thing. I used this command.
[code]svn checkout http://instadmg.googlecode.com/svn/trunk/ instadmg-read-only[/code]
July 22, 2010 at 4:44 pm #379156nobrainer
Participant[QUOTE][u]Quote by: MichaelR[/u][p]@nobrainer I just downloaded the whole thing. I used this command.
[code]svn checkout http://instadmg.googlecode.com/svn/trunk/ instadmg-read-only[/code][/p][/QUOTE]
I tried that one from this morning, and it’s having trouble with above log captures…
August 19, 2010 at 3:04 am #379285chops
ParticipantI am having major problems baking an updated 10.5.8 image for my LAST remaining PPC lab (gawd I wish it would just go away!). What is “svn” in this command and where does one type it?
[code]svn checkout http://instadmg.googlecode.com/svn/trunk/ instadmg-read-only[/code]
It looks like something one must run inside the InstaDMG script but I am clueless and I need a fix. Here are the last lines from a fail that has happened several times today:
[code] Mounting the shadow file (/private/tmp/InstaDMG_temp_folder.bVAtG4/BB589DA2-EBA6-47BF-9F37-2F92B39F0094.shadowfile) onto the cached image (./Caches/BaseImageCache/E0799E5A.dmg)
Target OS: Mac OS X 10.5.6 (9G2141)
Encasing installd daemon in a chroot jail
cp: /System/Library/LaunchDaemons/com.apple.installd.plist: No such file or directory
launchctl: Couldn’t stat(“/System/Library/LaunchDaemons/com.apple.installd.plist”): No such file or directory
nothing found to unload
###### Unable to unload system installd daemon ######
19:25:37 ###### Cleaning up ######
Restoring normal installd daemon
launchctl: Error unloading: com.apple.installd.modified
launchctl: Couldn’t stat(“/System/Library/LaunchDaemons/com.apple.installd.plist”): No such file or directory
nothing found to load
Ejecting images
Deleting scratch DMG
dhcp110-141:instaDMG admin$
[/code]August 19, 2010 at 4:25 am #379286chops
ParticipantI am having major problems baking an updated 10.5.8 image for my LAST remaining PPC lab (gawd I wish it would just go away!). What is “svn” in this command and where does one type it?
[code]svn checkout http://instadmg.googlecode.com/svn/trunk/ instadmg-read-only[/code]
It looks like something one must run inside the InstaDMG script but I am clueless and I need a fix. Here are the last lines from a fail that has happened several times today:
[code] Mounting the shadow file (/private/tmp/InstaDMG_temp_folder.bVAtG4/BB589DA2-EBA6-47BF-9F37-2F92B39F0094.shadowfile) onto the cached image (./Caches/BaseImageCache/E0799E5A.dmg)
Target OS: Mac OS X 10.5.6 (9G2141)
Encasing installd daemon in a chroot jail
cp: /System/Library/LaunchDaemons/com.apple.installd.plist: No such file or directory
launchctl: Couldn’t stat(“/System/Library/LaunchDaemons/com.apple.installd.plist”): No such file or directory
nothing found to unload
###### Unable to unload system installd daemon ######
19:25:37 ###### Cleaning up ######
Restoring normal installd daemon
launchctl: Error unloading: com.apple.installd.modified
launchctl: Couldn’t stat(“/System/Library/LaunchDaemons/com.apple.installd.plist”): No such file or directory
nothing found to load
Ejecting images
Deleting scratch DMG
dhcp110-141:instaDMG admin$
[/code] -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed