Skip to contentSkip to conversation

ts-devbian-hvm-install: get rid of the cdrom from install sources

PATCH New Dario Faggioli 1 participant 1 message Jul 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-devbian-hvm-install: get rid of the cdrom from install sources

in sources.list, so installing packages in the guest with apt-get does not stall waiting for the install CD.

Cc Wei Liu <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
---
 ts-debian-hvm-install |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ts-debian-hvm-install +2 -1
index 37eade2..e509064 100755
@@ -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;
 }