AFP548 Changing the world one server at a time.

Base Install not working

Home › Forums › Software › InstaDMG › Base Install not working

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #370375
    dsuper7
    Participant

    The 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....100
    #370377
    rmleonard
    Participant

    G4s 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_FILE

    where 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_NAME

    I 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
    Rich

    #370379
    dsuper7
    Participant

    I 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.

    #370381
    dsuper7
    Participant

    I 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.
    #370382
    rmleonard
    Participant

    what 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

    #370395
    dsuper7
    Participant

    I 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,
    Daniel

    #370396
    dsuper7
    Participant

    I 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`
    #370397
    dsuper7
    Participant
    $ECHO "Error Encountered in Defining Variables and command sets" >> $LOGFILE

    Should be…

    $ECHO "Error Encountered in Defining Variables and command sets" >> $LOG_FILE
    #370398
    dsuper7
    Participant

    never mind the post about $DATE. I see where you are defining it.

    #370400
    dsuper7
    Participant

    I seem to be getting stuck in the testkit function. I am getting

    Error Encountered in Defining Variables and command sets: command not found
    #370401
    dsuper7
    Participant

    here 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 found
    #370402
    rmleonard
    Participant

    interesting…..

    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.bash

    depending…

    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 path

    I think…

    #370406
    dsuper7
    Participant

    It think changing the working directory to the same as the script fixed part of the problem. I added

    PATH=/bin:/sbin/:/usr/bin/:/usr/sbin

    to 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 found

    I 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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.