lxc-clone of busybox lxc 440M instead 1.7M
Bug #1085057 reported by
Rene K. Mueller
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I am testing various lxc templates from Ubuntu 12.10, and noticed this:
% lxc-create -t busybox -n bb00
% lxc-clone -o bb00 -n bb01
% du -sh /var/lib/lxc/bb??
1.7M /var/lib/lxc/bb00
440M /var/lib/lxc/bb01
The problem is, that you copy /bin from bb00, which is ONE busybox with 281 hardlinks, once cloned to bb01, you copied all hardlinked busybox now individual files, blowing up from 1.7M to 440M.
I think it relates that you use rsync in lxc-clone, which disregards hardlinks.
Changed in lxc (Ubuntu): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for submitting this bug. We'll add -H to the rsync flags in lxc-clone.