Bug 167629

Summary: Workbook 5, Chapter 4 Labs Grading Script using /mnt instead of /media
Product: [Retired] Red Hat Academy Reporter: Ron King <tckingr>
Component: RHA030 CurriculumAssignee: Bowe Strickland <bowe>
Status: CLOSED EOL QA Contact: Bowe Strickland <bowe>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to run in /usr/share/rha/server/scripts/rha030-5.0 none

Description Ron King 2005-09-06 14:07:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

Description of problem:
RHEL3 uses the /mnt directory for mounting media.  RHEL4 uses /media.  The labs stated to use the /media for mounts, but the scripts check for /mnt.  Below you will find the excerpts from the two scripts.  I went in and copied the scripts to .old and then edited the "/mnt" to read "/media."  This was successful.

Excerpt from fsmngt_image.script:
cs.append(dev_is_mounted_cp("/dev/fd0", "/mnt/floppy", "ext2"))

#cs.append(rha.script.cmd_succeeds_cp("file floppy.img | grep filesystem "))
# do i dare?
cs.append(rha.script.cmd_succeeds_cp("mkdir /mnt/flarble; mount -o loop floppy.img /mnt/flarble; umount /mnt/flarble; rmdir /mnt/flarble", "root"))

Excerpt from fsmngt_floppy.script:
cs.append(dev_is_mounted_cp("/dev/fd0", "/mnt/floppy", "ext2"))
cs.append(dir_almost_same_cp("/etc/sysconfig", "/mnt/floppy/sysconfig"))
cl = [ ["head -1 df.floppy", "df | head -1"],
       ["cat df.floppy | wc -w", "df | wc -w"], ]

cs.append(rha.script.cmp_cmdlist_cp(cl))
cs.append(rha.script.cmd_succeeds_cp("grep /mnt/floppy df.floppy"))


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Work through Labs 1 and labs 2
2. Grade them

  

Actual Results:  Failing grades.

Expected Results:  100% Grade received.

Additional info:

Comment 1 Julian Old 2009-02-19 13:55:32 UTC
Created attachment 332558 [details]
patch to run in /usr/share/rha/server/scripts/rha030-5.0

Comment 2 Julian Old 2009-02-19 13:57:31 UTC
The second of these exercises still fails in 5.0
Fix is replace all mnt with media in 
/usr/share/rha/server/scripts/rha030-5.0/fsmngt_image.script

Attached patch (for what it's worth)