Bug 12868

Summary: mandriva_everytime has race condition causes it not to execute if file system is not remounted
Product: Mageia Reporter: Joseph Wang <joequant>
Component: RPM PackagesAssignee: Colin Guthrie <mageia>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal    
Version: 4   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: initscripts-9.41-21.mga4 CVE:
Status comment:

Description Joseph Wang 2014-02-24 13:42:43 CET
Description of problem:

mandriva_everytime.service does not insure that the root disk has not been 
remounted before executing.  This can cause a problem on web appliances and
VirtualBox in which there are no addition filesystems are mounted

The mandriva_everytime.service should have a

After=local-fs.target systemd-remount-fs.service

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


How reproducible:

This doesn't happen in production situations because the remount happens
before mandriva_everytime is executed.

Steps to Reproduce:
1. generate a bitstation.vdi image file from 
https://github.com/joequant/bitquant.git 
oz/mkimg-bitstation.sh

2. qemu-kvm will have the banner in mandriva_everytime
3. running in VirtualBox will miss the mageia welcome banner because of this race condtion


Reproducible: 

Steps to Reproduce:
David Walser 2014-02-24 20:56:49 CET

Assignee: bugsquad => mageia

Comment 1 Joseph Wang 2014-04-19 04:51:37 CEST
The problem was an interaction between the console output and the virtualbox terminal and was fixed by not redirecting the console to /dev/ttyS0 which is the configuration proposed by cloud stack.

Status: NEW => RESOLVED
Resolution: (none) => INVALID