Bug 167629 - Workbook 5, Chapter 4 Labs Grading Script using /mnt instead of /media
Workbook 5, Chapter 4 Labs Grading Script using /mnt instead of /media
Status: NEW
Product: Red Hat Academy
Classification: Retired
Component: RHA030 Curriculum (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bowe Strickland
Bowe Strickland
Depends On:
  Show dependency treegraph
Reported: 2005-09-06 10:07 EDT by Ron King
Modified: 2009-02-19 08:57 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to run in /usr/share/rha/server/scripts/rha030-5.0 (1.12 KB, patch)
2009-02-19 08:55 EST, Julian Old
no flags Details | Diff

  None (edit)
Description Ron King 2005-09-06 10:07:21 EDT
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.cmd_succeeds_cp("grep /mnt/floppy df.floppy"))

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

How reproducible:

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 08:55:32 EST
Created attachment 332558 [details]
patch to run in /usr/share/rha/server/scripts/rha030-5.0
Comment 2 Julian Old 2009-02-19 08:57:31 EST
The second of these exercises still fails in 5.0
Fix is replace all mnt with media in 

Attached patch (for what it's worth)

Note You need to log in before you can comment on or make changes to this bug.