setup doesn't copy /boot partition into image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LTSP5 |
Fix Released
|
Medium
|
Alkis Georgopoulos |
Bug Description
I'm using Xubuntu 14.04 64bit and I'm setting this up as a LTSP-PNP machine. I've setup the hard drive with /boot on a separate partition as I'm using LVM for the other partitions to allow for snapshots and easy resizing.
I followed the instructions from https:/
Update PXE config for kernels (LTSP-PNP specific) (must be done before building the image)
: /usr/share/
Build image
: ltsp-update-image --cleanup /
Update kernels
: ltsp-update-kernels
Generate LTS config
: ltsp-config lts.conf
When I try booting a thin client I get the error 'Could not find kernel image: vmlinuz'. After a lot of debugging and talking to people on IRC I found that the command 'ltsp-update-image -c /' was not copying my '/boot' contents as it was on a separate partition.
I could prove that nothing was in the image files /boot area by mounting the image in a loop back like so
: mount -o loop /opt/ltsp/
: ls /mnt/boot
I found that there was only three files in there: gpxelinux.0 pxelinux.0 pxelinux.cfg
To get it working I had to do a hack
: mount /dev/mapper/
: cp /boot/* /mnt/boot
: umount /mnt
: ltsp-update-image -c /
After rebuilding the image this way I could boot the thin client without any problems. My /boot is an ext4 filesystem and is the first primary partition on the drive.
Changed in ltsp: | |
importance: | Undecided → Medium |
status: | New → Triaged |
On 2014-08-03, map7 wrote:
> I'm using Xubuntu 14.04 64bit and I'm setting this up as a LTSP-PNP
> machine. I've setup the hard drive with /boot on a separate partition as
> I'm using LVM for the other partitions to allow for snapshots and easy
> resizing.
...
> Build image
> : ltsp-update-image --cleanup /
>
> Update kernels
> : ltsp-update-kernels
>
> Generate LTS config
> : ltsp-config lts.conf
>
> When I try booting a thin client I get the error 'Could not find kernel
> image: vmlinuz'. After a lot of debugging and talking to people on IRC I
> found that the command 'ltsp-update-image -c /' was not copying my
> '/boot' contents as it was on a separate partition.
I had to fix this in Debian, which uses aufs, by adding code in
ltsp-update-image to mount each mountpoint individually before making
the image. This used to not be required with overlayfs, which is what I
believe Ubuntu is using, but perhaps the overlayfs defaults have
changed?
live well,
vagrant