- This topic has 12 replies, 2 voices, and was last updated 19 years ago by
dsuper7.
-
AuthorPosts
-
November 1, 2007 at 4:56 pm #370375
dsuper7
ParticipantThe script isn’t installing the Base OS.
I made a disk image “from device” using a generic Tiger DVD.
I am booting to an external drive on a G4 iBook.Terminal Output:
created: /Volumes/Data/InstaDMG_Resources/Instadmg/DMG_Scratch/InstaDMG.07-11-01.sparseimage Started erase on disk disk4 Creating Partition Map 5% .. Formatting Disk 100% .. Finished erase on disk disk4 Finished partitioning on disk disk4 hdiutil: mount failed - not recognized /dev/disk6 Apple_partition_scheme /dev/disk6s1 Apple_partition_map /dev/disk6s2 Apple_Driver_ATAPI /dev/disk6s3 Apple_HFS /Volumes/Mac OS X Install DVD Disk renamed to OS-Build-07-11-01 hdiutil: create failed - File exists Disk /dev/disk4 ejected asr: successfully scanned image "/Volumes/Data/InstaDMG_Resources/Instadmg/ASR_Output/07-11-01.dmg"Log File:
07-11-01 Creating disk image Image mounted at /dev/disk4 07-11-01 Beginning Installation from /Volumes/Mac OS X Install DVD installer: Cannot install on volume /Volumes/InstaDMG because its disabled. installer: Mac OS X cannot start up from this volume. 07-11-01 Beginning Update Installs from ./AppleUpdates installer: Error the package path specified was invalid: './AppleUpdates/.DS_Store'. 07-11-01 Beginning Update Installs from ./CustomPKG installer: Error the package path specified was invalid: './CustomPKG/.DS_Store'. installer: Package name is InstaUser installer: Installing onto volume mounted at /Volumes/InstaDMG. installer: Preparing for installation..... ## installer: Preparing InstaUser..... installer: Installing InstaUser..... installer: installer: Configuring Installation # installer: Writing files installer: Writing package receipt # installer: Finishing Installation..... # installer: Finishing Installation # installer: # installer: The software was successfully installed..... installer: The install was successful. 07-11-01 Creating the deployment DMG and scanning for ASR Rename the deployment volume Build a new image from folder... Scanning image for ASR Image to scan is ./ASR_Output/07-11-01.dmg Checksumming partition of size 63 blocks...done Block checksum: ....10....20....30....40....50....60....70....80....90....100November 1, 2007 at 7:33 pm #370377rmleonard
ParticipantG4s behave differently than the Intels –
take a look at my version – and see the differences in the diskutil and hdiutil commands
in my version – with G4 settings in place –
I invoke it thus$DISKUTIL eraseVolume JHFS+ $DMG_FS_NAME bootable $CURRENT_IMAGE_MOUNT_DEV >> $LOG_FILEwhere in the original code he calls it up one of two ways
# Format the DMG so that the Installer will like it (Intel Mac) /usr/sbin/diskutil eraseDisk "Journaled HFS+" $DMG_FS_NAME GPTFormat $CURRENT_IMAGE_MOUNT_DEV CURRENT_IMAGE_MOUNT=/Volumes/$DMG_FS_NAME # Format the DMG so that the Installer will like it (PPC Mac) # /usr/sbin/diskutil eraseDisk "Journaled HFS+" $DMG_FS_NAME bootable $CURRENT_IMAGE_MOUNT_DEV # CURRENT_IMAGE_MOUNT=/Volumes/$DMG_FS_NAMEI found that using the GPTFormat doesn’t always work, and flat out can’t be invoked on a PPC platform…
so make sure that in your operation – you have the code block set to PPC…
YMMV
RichNovember 1, 2007 at 8:00 pm #370379dsuper7
ParticipantI did note those code blocks and I used the PPC block.
Thanks for the reply. I’ll try your version and see if I get a different result.
November 1, 2007 at 8:50 pm #370381dsuper7
ParticipantI changed the original code to reflect the revised code and I got the same result.
I am not able to interpret these lines in the log… or how to investigate this further.
Beginning Installation from /Volumes/Mac OS X Install DVD installer: Cannot install on volume /Volumes/InstaDMG because its disabled. installer: Mac OS X cannot start up from this volume.November 1, 2007 at 9:10 pm #370382rmleonard
Participantwhat do you have the destination volume set to?
and did it mount the disk InstaDMG?
I think I found that on the PPC systems – I had to create a physical partition on the hard drive or use an external HD to make it work – 10.4 doesn’t seem to want to install off to a disk image
I have yet to incorporate any of the flurry of changes into the mod i did…
but try using my code and point it at a “real” hard disk, not an image file….
Rich
November 2, 2007 at 5:09 pm #370395dsuper7
ParticipantI am booting to an external drive and I made the internal drive (“/Volumes/Macintosh HD”) the ASR_TARGET_VOLUME.
The script does create a mountable image with the contents of the InstaUser package in it.
I’ll try using your script and see what happens.
Thanks,
DanielNovember 2, 2007 at 5:23 pm #370396dsuper7
ParticipantI just ran the script, and I had trouble with this line.
CREATE_DATE=`$DATE +%y-%m-%d`Shouldn’t it be this?
CREATE_DATE=`DATE +%y-%m-%d`November 2, 2007 at 5:35 pm #370397dsuper7
Participant$ECHO "Error Encountered in Defining Variables and command sets" >> $LOGFILEShould be…
$ECHO "Error Encountered in Defining Variables and command sets" >> $LOG_FILENovember 2, 2007 at 5:51 pm #370398dsuper7
Participantnever mind the post about $DATE. I see where you are defining it.
November 2, 2007 at 6:05 pm #370400dsuper7
ParticipantI seem to be getting stuck in the testkit function. I am getting
Error Encountered in Defining Variables and command sets: command not foundNovember 2, 2007 at 6:27 pm #370401dsuper7
Participanthere is the terminal output.
/Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 393: ---- starting ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: +DATE: %m/%d/%y%nTIME: %H:%M:%S: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 125: 07-11-02: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: Macintosh: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: -n: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: { print $1 }: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 131: unmount: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: hw.machine: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: -c: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 149: [: -eq: unary operator expected /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 152: I'm Running on Intel Platform: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 92: Erasing Disk for PPC Platform: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 93: Formatting as Macintosh HD at : command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 95: Formatting as Hard Disk: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 96: eraseVolume: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 155: Formatting as Disk Image at Macintosh HD on : command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 158: Current Image Mount is /Volumes/Macintosh HD: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 396: ---- completed part 1 - create_and_mount_image_new ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 399: ---- completed part 2 - mount_os_install_new ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 209: --source: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: attach: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: -n: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: { print $1 }: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 216: rename: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 217: Current state Macintosh HD /Volumes/Macintosh HD: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 401: ---- completed part 3 - install_system_new ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 223: 07-11-02: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 224: 07-11-02: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 225: Beginning Update Installs from /Volumes/Data/InstaDMG/AppleUpdates: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 226: Beginning Update Installs from /Volumes/Data/InstaDMG/AppleUpdates: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: /Volumes/Data/InstaDMG/AppleUpdates: is a directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 403: ---- completed part 4 - install_updates ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 250: 07-11-02: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 251: 07-11-02: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 252: Beginning Update Installs from /Volumes/Data/InstaDMG/CustomPKG: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 253: Beginning Update Installs from /Volumes/Data/InstaDMG/CustomPKG: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: /Volumes/Data/InstaDMG/CustomPKG: is a directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 405: ---- completed part 5 - install_custom ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 277: 07-11-02: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 278: Creating the deployment DMG and scanning for ASR: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 281: Rename the deployment volume /Volumes/Macintosh HD: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 283: rename: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 286: Build a new image from folder /Volumes/OS-Build-07-11-02 ...: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 287: create: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 295: We Will not UnMount a Hard Disk on exit: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 300: Scanning image for ASR: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 301: Image to scan is /Volumes/Data/InstaDMG/ASR_Output/07-11-02.dmg: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 302: imagescan: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 407: ---- completed part 6 - close_up_and_compress ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 320: ejecting media: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 321: /Volumes/Data/InstaDMG/DMG_Scratch/dev_file.dat: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 325: Removing Scratch files: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 326: /Volumes/Data/InstaDMG/DMG_Scratch/*: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 409: ---- completed part 7 - clean_up ----: command not found /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 1: +DATE: %m/%d/%y%nTIME: %H:%M:%S: No such file or directory /Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 411: ---- Program End ----: command not foundNovember 2, 2007 at 6:39 pm #370402rmleonard
Participantinteresting…..
ummmm…..
it would seem that something isn’t as it appears
how are you invoking the command?
ifthe file is executable, it should be called up thus:
sudo ./instadmg.bash or
sudo ./instadmg-rmlcll-revision.bashdepending…
don’t run it as root – run it as a priviledged user via sudo
the reason is in the pathing
if you are root – then your $PATH may get wonkie
you need at least
/bin:/sbin:/usr/bin:/usr/sbin
in the pathI think…
November 2, 2007 at 8:30 pm #370406dsuper7
ParticipantIt think changing the working directory to the same as the script fixed part of the problem. I added
PATH=/bin:/sbin/:/usr/bin/:/usr/sbinto the top of the script, but it still didn’t go.
Terminal output:
/Volumes/Data/Instadmg/instadmg-rmlcll-revision.bash: line 422: Error Encountered in Defining Variables and command sets: command not foundI am running it on 10.4.10. the script is located on a different partition from the booted system (if that matters).
I executed the script using the method you provided in the previous post. It may be significant that I got further with the original script than the revised script. The original script wrote to both of the log files and actually created a disk image though it didn’t have a system on it.
-
AuthorPosts
- You must be logged in to reply to this topic.