Can you <spin> inside a container?
by Boyd Kelly
Hi,
I was just fiddling with livecd-creator on my silverblue laptop. If I
create a container and try to run livecd-creator I will get for example:
[bkelly@xps fedora-live-workstation]$ sudo livecd-creator -c
fedora-live-workstation.ks
/usr/lib/python3.9/site-packages/pykickstart/commands/partition.py:448:
KickstartParseWarning: A partition with the mountpoint / has already been
defined.
warnings.warn(_("A partition with the mountpoint %s has already been
defined.") % pd.mountpoint, KickstartParseWarning)
losetup: cannot find an unused loop device: No such device
Error creating Live CD : Failed to loopback mount
'/var/tmp/imgcreate-_9rne_ob/tmp-ub9a2g97/ext3fs.img' : Failed to allocate
loop device for '/var/tmp/imgcreate-_9rne_ob/tmp-ub9a2g97/ext3fs.img'
[bkelly@xps fedora-live-workstation]$
This is not surprising to me, but just wondering if there are any options
or methods at this time (other than layering the packages on the host) to
produce a spin inside a container.
Thanks!!!
--
Boyd Kelly <bkelly(a)coastsystems.net>
www: http://www.coastsystems.net
Tel: +1 604 837-0765
2 years, 4 months
[fedora-kickstarts] branch main updated (ec56783 -> 99f1db5)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
mohanboddu pushed a change to branch main
in repository fedora-kickstarts.
from ec56783 Revert "Add the fstrim to post and avoid 40GB Vagrant files"
add 99f1db5 Drop 'auth' line from ELN guests
No new revisions were added by this update.
Summary of changes:
fedora-eln-guest.ks | 1 -
1 file changed, 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months
[fedora-kickstarts] branch main updated (dc9b560 -> ec56783)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
ngompa pushed a change to branch main
in repository fedora-kickstarts.
from dc9b560 Revert "Remove zeroing the disk, use fstrim+sync to trim the disk"
add ec56783 Revert "Add the fstrim to post and avoid 40GB Vagrant files"
No new revisions were added by this update.
Summary of changes:
fedora-cloud-base.ks | 3 ---
1 file changed, 3 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months
[fedora-kickstarts] branch main updated: Revert "Remove zeroing the disk, use fstrim+sync to trim the disk"
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
ngompa pushed a commit to branch main
in repository fedora-kickstarts.
The following commit(s) were added to refs/heads/main by this push:
new dc9b560 Revert "Remove zeroing the disk, use fstrim+sync to trim the disk"
dc9b560 is described below
commit dc9b56098fa966499a928efd61e8c6b38d17b379
Author: Neal Gompa <ngompa(a)fedoraproject.org>
AuthorDate: Fri Jul 16 09:49:22 2021 -0400
Revert "Remove zeroing the disk, use fstrim+sync to trim the disk"
fstrim doesn't work at all in the image creation environment.
This reverts commit 8cad6efa4e862400122cd62bf4f5fa373ef95b4e.
---
fedora-cloud-base.ks | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks
index 4857c4c..a647718 100644
--- a/fedora-cloud-base.ks
+++ b/fedora-cloud-base.ks
@@ -121,6 +121,18 @@ releasever=$(rpm --eval '%{fedora}')
basearch=$(uname -i)
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
+echo "Zeroing out empty space."
+# Create zeros file with nodatacow and no compression
+touch /var/tmp/zeros
+chattr +C /var/tmp/zeros
+# This forces the filesystem to reclaim space from deleted files
+dd bs=1M if=/dev/zero of=/var/tmp/zeros || :
+echo "(Don't worry -- that out-of-space error was expected.)"
+# Force sync to disk (Cf. https://pagure.io/cloud-sig/issue/340#comment-743430)
+btrfs filesystem sync /
+rm -f /var/tmp/zeros
+btrfs filesystem sync /
+
# When we build the image a networking config file gets left behind.
# Let's clean it up.
echo "Cleanup leftover networking configuration"
@@ -129,12 +141,8 @@ rm -f /etc/NetworkManager/system-connections/*.nmconnection
# Clear machine-id on pre generated images
truncate -s 0 /etc/machine-id
-# Use fstrim to trim the disk of unused blocks
-# Cf. BZ#1971186
-echo "Trimming the disk of unused blocks."
+# add fstrim -av to the post section until BZ#1971186 is resolved
fstrim -av
-# Force sync to disk (Cf. https://pagure.io/cloud-sig/issue/340#comment-743430)
-btrfs filesystem sync /
%end
##### end kickstart post ############################################
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months
[fedora-kickstarts] branch main updated (49753d1 -> 8cad6ef)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
ngompa pushed a change to branch main
in repository fedora-kickstarts.
from 49753d1 Set up the zeros file as nodatacow to disable CoW and compression
add 8cad6ef Remove zeroing the disk, use fstrim+sync to trim the disk
No new revisions were added by this update.
Summary of changes:
fedora-cloud-base.ks | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months
[fedora-kickstarts] branch main updated (b4015b7 -> 49753d1)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
mohanboddu pushed a change to branch main
in repository fedora-kickstarts.
from b4015b7 Force the filesystem to sync to disk before trimming
add 49753d1 Set up the zeros file as nodatacow to disable CoW and compression
No new revisions were added by this update.
Summary of changes:
fedora-cloud-base.ks | 3 +++
1 file changed, 3 insertions(+)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months
[fedora-kickstarts] branch main updated (d4d8bff -> b4015b7)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
siosm pushed a change to branch main
in repository fedora-kickstarts.
from d4d8bff Remove 'zeroing out empty space' section
add ad8e04a Revert "Remove 'zeroing out empty space' section"
add b4015b7 Force the filesystem to sync to disk before trimming
No new revisions were added by this update.
Summary of changes:
fedora-cloud-base.ks | 9 +++++++++
1 file changed, 9 insertions(+)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months
[fedora-kickstarts] branch main updated (bc7e8ce -> d4d8bff)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch main
in repository fedora-kickstarts.
from bc7e8ce Add the fstrim to post and avoid 40GB Vagrant files
add d4d8bff Remove 'zeroing out empty space' section
No new revisions were added by this update.
Summary of changes:
fedora-cloud-base.ks | 6 ------
1 file changed, 6 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months
[fedora-kickstarts] branch main updated (6a37d23 -> bc7e8ce)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch main
in repository fedora-kickstarts.
from 6a37d23 Ensure Fedora Cloud has grub installed for BIOS boot on x86_64
add bc7e8ce Add the fstrim to post and avoid 40GB Vagrant files
No new revisions were added by this update.
Summary of changes:
fedora-cloud-base.ks | 3 +++
1 file changed, 3 insertions(+)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 4 months