Bug 167629 - Workbook 5, Chapter 4 Labs Grading Script using /mnt instead of /media
Summary: Workbook 5, Chapter 4 Labs Grading Script using /mnt instead of /media
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Academy
Classification: Retired
Component: RHA030 Curriculum
Version: 3.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bowe Strickland
QA Contact: Bowe Strickland
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-06 14:07 UTC by Ron King
Modified: 2020-03-27 18:04 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


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

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)


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