X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.8 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Message-id: <50886CC8.9050704@cygwin.com> Date: Wed, 24 Oct 2012 18:33:44 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.7.17 breaks unattended setup References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 10/24/2012 9:16 AM, Stefan Rusek wrote: > I have a script automates installing and setting up sshd using cygwin. > It first downloads the latest setup.exe then runs the following: > >> setup.exe -q -s ftp://mirror.cs.vt.edu/pub/cygwin/cygwin/ --no-verify -R c:\cygwin >> c:\cygwin\bin\bash --login -c "/bin/mkpasswd | sed 's/Administrator:unused:500:513/root:unused:0:544/g' | sed 's/:513:/:545:/' > /etc/passwd" >> c:\cygwin\bin\bash --login -c "/bin/mkgroup -l > /etc/group" >> setup.exe -q -s ftp://mirror.cs.vt.edu/pub/cygwin/cygwin/ --no-verify -R c:\cygwin -P cygrunsrv >> setup.exe -q -s ftp://mirror.cs.vt.edu/pub/cygwin/cygwin/ --no-verify -R c:\cygwin -P openssh >> c:\cygwin\bin\bash.exe --login -c "/bin/ssh-host-config -y --pwd ***" >> sc.exe failure sshd reset=0 actions=restart/0/restart/0/restart/0 >> net start sshd > > This was working great last week, but on the 20th it stopped working. > > It fails on the line installing cygrunsrv, if I run setup.exe in > interactive mode, I can install cygrunsrv just fine. Then the script > fails to install openssh in the same way. Again a manual install works > fine. I've tried different mirrors to no avail. > > The contents of /var/log/setup.log.full https://gist.github.com/3945977 Your problem is not with Cygwin 1.7.17. That package wouldn't come into play until the postinstall scripts. Your log shows you don't get that far. And if it works interactively, then the problem is with 'setup.exe' itself. I can reproduce the problem but don't know why it's happening. There hasn't been a new version of 'setup.exe' in quite a while so I can't explain why you would just start seeing the problem within the last week. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple