The re-preinstall command fails to install custom JumpStart software. The failure occurs because the fsck command cannot update the UFS log for file systems that have read-only permissions.
For example, you type the following command:
# /usr/sbin/install.d/re-preinstall cXtXdXsX
After the system is rebooted, the following error message is displayed:
fsck of device failed, re-preinstall needs to be re-run. syncing file systems... done Program terminated |
Workaround: Choose one of the following options. You must be superuser to perform either workaround.
Option 1: If you are using a writable network installation image, proceed with the following steps:
On the server that contains the installation image, edit the /usr/sbin/install.d/rcS.stub file to remove or comment out the following lines:
# # Make sure the root FS is clean # # /etc/fsck -F ufs -o p ${RootfsRaw} >/dev/null # if [ $? -ne 0 ]; then # echo "fsck of ${RootfsRaw} failed, re-preinstall needs to be re-run." # /usr/sbin/halt # if |
On the system where you are installing the JumpStart software, boot the network installation image in single-user mode:
ok boot net -s
Run the re-preinstall command as usual.
# /usr/sbin/install.d/re-preinstall cXtXdXsX
Option 2: If you are booting directly from the CD-ROM or DVD-ROM, proceed with the following steps:
Boot the CD or DVD.
Exit the installer.
Run the re-preinstall command.
Mount the device that you created in step 3.
For example, if in step 3 you typed re-preinstall c0t0d0s0, mount this file system as follows:
# mount /dev/dsk/c0t0d0s0 /mnt
On the mounted file system, edit the sbin/rcS script to remove or comment out the same lines as in the first workaround.
Unmount the file system.
# umount /mnt
Reboot the system to continue installing the JumpStart software.