Bug 804295

Summary: Running update using vmlinuz/initrd.img/squashfs.img on /boot fails
Product: [Fedora] Fedora Reporter: Stefan Becker <chemobejk>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: anaconda-maint-list, dcantrell, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-18 22:34:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
anaconda.log
none
program.log
none
syslog none

Description Stefan Becker 2012-03-17 13:19:15 UTC
Description of problem:

I'm trying to upgrade my Fedora 16. As usual I have downloaded vmlinuz, initrd.img and (new for F17) LiveOS/squasfs.img from the F17 repo and installed them on /boot. I've created a grub2 entry to boot this install Linux with

   linux /vmlinuz root=live:UUID=... rd.luks=0 rd.md=0 rd.dm=0
   initrd /initrd.img

Then I reboot the machine and select this install entry in grub. Everything works fine:

  - kernel boots
  - initrd starts
  - live image starts
  - Anaconda starts
  - Select "Basic storage"
  - Anaconda scans disk, finds my LUKS
  - enter LUKS password
  - Select "Update existing Fedora 16" on my / partition

But now Anaconda fails with 

   "An error occurred mounting device /dev/sda1 as /boot: mount failed... /dev/sda1 is already mounted or /mnt/sysimage/boot busy..."

This is a fatal error and therefore Anaconda aborts the installation.

This comes as no surprise, because /dev/sda1 (=/boot) is busy serving the live image. Shouldn't Anaconda at least try a --bind mount instead?


Version-Release number of selected component (if applicable): boot Message says "Welcome to Anaconda 17.11"

How reproducible: Always

Comment 1 Chris Lumens 2012-03-19 02:46:43 UTC
Please attach /tmp/anaconda.log, /tmp/program.log, and /tmp/syslog to this bug report.

Comment 2 Stefan Becker 2012-03-19 04:45:27 UTC
Created attachment 570997 [details]
anaconda.log

Comment 3 Stefan Becker 2012-03-19 04:46:04 UTC
Created attachment 570998 [details]
program.log

Comment 4 Stefan Becker 2012-03-19 04:46:45 UTC
Created attachment 570999 [details]
syslog

Comment 5 Jesse Keating 2012-07-18 22:34:35 UTC
We don't automatically copy the root image off the install source into ram so that we save ram.  However if you pass the 'inst.upgrade' boot option we will copy it off.