From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: bug#37293: image-size is meaningless when generating ext4 images Date: Mon, 02 Sep 2019 20:48:27 -0600 Message-ID: <46bad7b539bd9a7ce04e2dcbfad336a00fdc03f0.camel@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-uPeM/DKsJe35Ft02ml5V" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53126) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4ysR-0006ey-71 for bug-guix@gnu.org; Mon, 02 Sep 2019 22:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4ysQ-0007G5-8y for bug-guix@gnu.org; Mon, 02 Sep 2019 22:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4ysQ-0007Fr-52 for bug-guix@gnu.org; Mon, 02 Sep 2019 22:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4ysQ-0000we-15 for bug-guix@gnu.org; Mon, 02 Sep 2019 22:49:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:52988) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4yrz-0006Zq-4x for bug-guix@gnu.org; Mon, 02 Sep 2019 22:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4yrx-0006YV-Eu for bug-guix@gnu.org; Mon, 02 Sep 2019 22:48:35 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:37026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4yrx-0006Wb-6P for bug-guix@gnu.org; Mon, 02 Sep 2019 22:48:33 -0400 Received: by mail-pf1-x42c.google.com with SMTP id y9so9846726pfl.4 for ; Mon, 02 Sep 2019 19:48:30 -0700 (PDT) Received: from piranhaplant.local ([199.68.53.171]) by smtp.googlemail.com with ESMTPSA id j10sm14924869pjn.3.2019.09.02.19.48.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 19:48:28 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37293@debbugs.gnu.org --=-uPeM/DKsJe35Ft02ml5V Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit The manual says in multiple places the --image-size option should set the size of a generated ext4 disk image. I start with a minimalist configuration (attached: minimal.scm) and run build-minimal-os.sh (attached). I start virt-manager and make a new virtual machine with the generated img as the disk image. virt-manager says the disk image is 20G. So far so good... I run "guix pull" and it fails because it runs out of disk space. I run df -h and see the partition mounted on / has only 494M. available. I run cfdisk /dev/sda and see the first partition is 20G. I have added quite a bit to the minimal os, but have not changed the behavior. The attached minimal.scm is my most recent version. Does anyone know of a way to expand the main partition's size? Thanks, -- -Jesse --=-uPeM/DKsJe35Ft02ml5V Content-Type: application/x-shellscript; name="build-minimal-os.sh" Content-Disposition: attachment; filename="build-minimal-os.sh" Content-Transfer-Encoding: base64 Z3VpeCBzeXN0ZW0gYnVpbGQgLS12ZXJib3NpdHk9MyBtaW5pbWFsLnNjbSB8fCBleGl0IDEKZ3Vp eCBzeXN0ZW0gZGlzay1pbWFnZSAtLWZpbGUtc3lzdGVtLXR5cGU9ZXh0NCAtLXJvb3Q9X21pbmlt YWwuaW1nIC0taW1hZ2Utc2l6ZT0yMEcgbWluaW1hbC5zY20gfHwgZXhpdCAxCmNwIF9taW5pbWFs LmltZyBtaW5pbWFsLmltZwpjaG1vZCB1K3cgbWluaW1hbC5pbWcK --=-uPeM/DKsJe35Ft02ml5V Content-Disposition: attachment; filename="minimal.scm" Content-Type: text/x-scheme; name="minimal.scm"; charset="UTF-8" Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChnbnUpCgkgICAgIChnbnUgc2VydmljZXMgbmV0d29ya2luZykpCgoob3Bl cmF0aW5nLXN5c3RlbQogKGJvb3Rsb2FkZXIKICAoYm9vdGxvYWRlci1jb25maWd1cmF0aW9uCiAg KGJvb3Rsb2FkZXIgZ3J1Yi1ib290bG9hZGVyKSkpCiAgKGhvc3QtbmFtZSAibWluaW1hbC1vcyIp CiAoZmlsZS1zeXN0ZW1zIChjb25zKgoJCShmaWxlLXN5c3RlbQoJCSAodHlwZSAiZXh0NCIpCgkJ IChtb3VudC1wb2ludCAiLyIpCgkJIChkZXZpY2UgIi9kZXYvc2RhMSIpCgkJIChuZWVkZWQtZm9y LWJvb3Q/ICN0KQoJCSAoY3JlYXRlLW1vdW50LXBvaW50PyAjdCkpCgkJJWJhc2UtZmlsZS1zeXN0 ZW1zKSkKIChwYWNrYWdlcyAoY29ucyoKCSAgICAlYmFzZS1wYWNrYWdlcykpCgogKHNlcnZpY2Vz CiAgKGNvbnMqCiAgIChzZXJ2aWNlIG5ldHdvcmstbWFuYWdlci1zZXJ2aWNlLXR5cGUpCiAgIChz ZXJ2aWNlIHdwYS1zdXBwbGljYW50LXNlcnZpY2UtdHlwZSkKICAgJWJhc2Utc2VydmljZXMpKQog KHRpbWV6b25lICJBbWVyaWNhL0RlbnZlciIpKQo= --=-uPeM/DKsJe35Ft02ml5V--