From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH 01/27] ts-devbian-hvm-install: prune "cdrom:" from install sources Date: Wed, 10 Dec 2014 19:09:02 +0100 Message-ID: <20141210180902.26400.41693.stgit@Abyss.station> References: <20141210180651.26400.13356.stgit@Abyss.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141210180651.26400.13356.stgit@Abyss.station> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Jackson , Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org in sources.list, so installing packages in the guest with apt-get does not stall waiting for the install CD to be inserted. Signed-off-by: Dario Faggioli Cc: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- ts-debian-hvm-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index 37eade2..e509064 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -78,7 +78,8 @@ d-i preseed/late_command string \\ in-target mkdir -p /boot/efi/EFI/boot; \\ in-target cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/boot/bootx64.efi ;\\ in-target mkdir -p /root/.ssh; \\ - in-target sh -c "echo -e '$authkeys'> /root/.ssh/authorized_keys"; + in-target sh -c "echo -e '$authkeys'> /root/.ssh/authorized_keys";\\ + in-target sed -i "/^deb cdrom:/s/^/#/" /etc/apt/sources.list END return $preseed_file; }