casper toram forgets to disconnect loop device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Baltix |
Invalid
|
Undecided
|
Unassigned | ||
casper (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ubiquity
Ubiquity cannot install if you are booting LiveCD directly from ISO.
Booting directly from GRUB to the ISO, mounts the ISO to /isodevice.
Ubiquity will not install (even if on separate disk) if this is not unmounted.
The result being that one cannot install Ubuntu in this method.
This method can be used to create a recovery partition or a multi-usb bootable drive. For more explanation on how to do this:
========== START ==========
* Run the following commands which will create the directory /boot/iso and download the iso file to that directory.
$ sudo -s
# mkdir /boot/iso
# cd /boot/iso
# wget http://
* Add a custom menu entry in GRUB2 configuration file. Edit /etc/grub.
#!/bin/sh
echo "Adding 40_custom." >&2
exec tail -n +3 $0
menuentry "Maverick CD Image ISO" {
set isofile=
loopback loop (hd0,1)$isofile
linux (loop)/
initrd (loop)/
}
* Afterwards, run update-grub for the changes to be propagated to /boot/grub/grub.cfg
# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-...
Found initrd image: /boot/initrd.
========== STOP ==========
================== Workaround =================
After casper copy to ram , it need to disconnect the loop device and unmount
losetup -d /dev/loop0
umount /isodevice
=======
The result of booting from the ISO directly from GRUB, is that the CD is that the partition where the ISO is located is mounted to /isodevice.
Ubiquity seems to want to have control of all disks and unmount all disks before it starts installing. In the images here you see the example is sda2 for / and sda for the MBR. I have also tried this with a secondary disk where sdb1 was to be used for / and sdb for the MBR and ubiquity still complained that it had to to unmount /isodevice, even though it is on sda1. Doesn't make much sense to unmount a disk if you will not be editing any part of it.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: ubiquity 2.4.8
ProcVersionSign
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelMo
Architecture: i386
Date: Thu Dec 2 16:34:42 2010
LiveMediaBuild: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubiquity
Related branches
- Ubuntu Installer Team: Pending requested
-
Diff: 29 lines (+12/-0)2 files modifiedscripts/casper-bottom/05mountpoints (+7/-0)
scripts/casper-bottom/99casperboot (+5/-0)
- Steve Langasek: Pending requested
-
Diff: 155 lines (+40/-20)5 files modifiedhooks/casper (+1/-0)
scripts/casper (+6/-1)
scripts/casper-bottom/05mountpoints (+7/-0)
scripts/casper-bottom/99casperboot (+5/-0)
scripts/casper-helpers (+21/-19)
description: | updated |
description: | updated |
tags: | added: ubiquity-2.4.8 |
no longer affects: | ubiquity |
tags: |
added: bionic focal removed: maverick |
description: | updated |
description: | updated |
You need to preseed the following:
d-i partman/ filter_ mounted boolean false partman- skip-unmount boolean true
d-i ubiquity/