how to use manageMount.sh to install patch on AM 8.4 ?
this was used in AM 8.2 and AM 8.3 but does not work in AM 8.4
how to use manageMount.sh to install patch on AM 8.4 ?
this was used in AM 8.2 and AM 8.3 but does not work in AM 8.4
How did the error manifest itself? For example, did it give an error message or blow up? Did it simply not run?
I had a similar problem and after a diff with the backup version, discovered a typo. Also, try leaving a space on either side of the here script operator "<<", I've seen the lack of one cause parsing errors. If you indent the end marker for the here script, be sure to use the "<<-" form of the operator to ignore leading whitespace.
I just tested this on a Dell R210 running 8.4.0.3.0
works fine as the KB article 000030036 says (here it scanned my 'fake' cd-rom drive and found the update file
was already installed, so was skipped)
Was I did was:
-create a directory called /media
-sftp the iso to that directory
-made a backup copy of manageMount.sh
-edited manageMount.sh to remove the current cd-rom section
#mount_cdrom(){
# if [ ! -d "/media" ]; then
# mkdir /media
# fi
#
# umount_cdrom > /dev/null 2>&1
# sleep 1
# for i in `seq 0 9`
# do
# if [ -b "/dev/sr$i" ]; then
# # This command seems to sometimes fail on the first try.
# mount -t auto -r "/dev/sr$i" /media
# if [ "$?" = "0" ]; then
# return 0
# fi
# # First one failed, try again.
# mount -t auto -r "/dev/sr$i" /media
# if [ "$?" = "0" ]; then
# return 0
# fi
# fi
# done
#
# return 1
#}
-added in a new cd-rom section as the KB article says
mount_cdrom () {
umount_cdrom > /dev/null 2>&1
mount -t iso9660 -r /dev/cdrom /media
}
---got one error making the symlink since /dev/cdrom already existed
jmulsman-vm115:/dev # ln -s /media/am-update-8.4.0.3.0.iso /dev/cdrom
ln: failed to create symbolic link '/dev/cdrom': File exists
So I removed it and made the symlink
jmulsman-vm115:/dev # rm -rf /dev/cdrom
jmulsman-vm115:/dev # ln -s /media/am-update-8.4.0.3.0.iso /dev/cdrom
Went to operations console, chose CD-ROM as update source, scan for updates, it found my ISO.