From owner-freebsd-hackers@freebsd.org Mon Feb 4 03:20:13 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A37914BC65C for ; Mon, 4 Feb 2019 03:20:13 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DB7C6ADAA for ; Mon, 4 Feb 2019 03:20:07 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [10.100.0.31] (haymarket.m5p.com [10.100.0.31]) (authenticated bits=0) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTPSA id x142ooFZ022167 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO) for ; Sun, 3 Feb 2019 21:51:02 -0500 (EST) (envelope-from george+freebsd@m5p.com) To: FreeBSD Hackers From: George Mitchell Openpgp: preference=signencrypt Autocrypt: addr=george+freebsd@m5p.com; prefer-encrypt=mutual; keydata= mQINBFgnLnwBEADAJDiBKQX77LFRz9wZW8mz3KvaQol2nIremcws0F1mz/zgFlk6uhQVtwnL wb4XL5LdFwcNE1+QZzPLcbYWoWQlz0lBw1bMuKAgr0S6V2e0+I0DqhKeslVFctcTwtvT6pnK VLZXO/7ZGAaLzG4K5vSPzgoevU+YI/pxNsVCH2UO/c3jQW63uEt25mIZbCF1Pu4jgp4RhIgF ujn877r/j6OwBwjzRUu3E6ADp+U825d+5YCuQMEH0wIPnn9GTpXvfdKdbwOIl2akqXqs4cnk iATWfK3r6D4mvDEj1OPHlTvJYcfic7aOIiAwmx1C1v78GjXOdOOA0SGffNix3C2/8oZUO1+V Aet4MKpUKkduWSvULhIkHNZ5Nu8SIJOqge8pmtHxuNXAMfMrAjMdjPwwBFLsYg3Xa2E2oJwg ehTauwd/EDJFcVCyDCyCAYOi/BH/+XQyxzgDlY9N9qj9tHqhVPI6XK7t8UVffGiZUq4rHp5J RdOToqiTNC6eCJBczhMIW+DuFvWU9e6W708T1dz0Accn6Lrgk4eRIn3GFPBG+TxnpjAqHsbW 607dcnD3YKAqY4e+khczL4EObhe7dC1v2fmZiAC6Ds3WHR11IfqoUgCkIwJ590Ej+ElygJFF XxI82wtEz9hkeLLvItpyEJNVjppViRW+Dgl/U7ypHB3qDgYjgwARAQABtChHZW9yZ2UgTWl0 Y2hlbGwgPGdlb3JnZStmcmVlYnNkQG01cC5jb20+iQJUBBMBCAA+FiEENdM4ZHktsJW5kKZX wRES3m+p4fkFAlhZcR0CGyMFCQlmAYAFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQwRES 3m+p4flqmw/9Emr/ydTG2n9o/IX1yVCNcHVFenVrcOY0L+DGQYZRO/XpLvsGYcuSIQId1w7h l4HZKI89ri2fF2ks6upMqBajLf8s7a8PnYrbw5bPaoOFyNTjv57GLZVsYw95kmMUpK6siuAA fXvHfKUpC/sThbwSv/1CLryVG74+5vdI8j7cQeDM436FThxlVfHKrILIiL34D4WThFB3hV/Y 2A+mQwXmdLcuQXXeAazqsFJL8sgEKSC7GMcExDkVpGc5Rh2hu97a4Sa7qWX9G/YdZOrcDacJ XxfvePn3m3WfRtXN/r0lUfiVXiqkFfbvqSaZQ0I4UvZXNGd/gH4jKHtX9RTH9G96UZeHNoMo tPw9U0fx8Ceh72nUL9qzqnmok/ryWm+6gt4Q1eRP7QAosOa1g/RgUdS1Z9IuCmbXMDp5kbNw L4ZoDMF5U3mmh8/IOKkhGopNLbNv0mwUgC59pnCptiOVx8DyckXWC4L2r6PKbWGrcGIzsUER 9smfL10gpp5H5agjwwPZI6/kzJ0R5nBzQWAlwqI73YAy6JI0HTD6lvxW7yWm2fGjEfmyaBOU 8OLUin7auoFSn+QmD5yNCUn5Ls77qHARkT1ZGocAnQkvZBGTwXpvyJixygXsm+vSUFDYBOSn cR54vdXOEMqrJk6SGau5YI9V7EhQVveE1BUp8ofWf2oo4RG5Ag0EWCcufAEQALuTOxmqMFE+ ieev/rcL3wVJrcuKS+pBbKCY9IIL0OwVf98HQJJcgdOsdDhruVd19nJNlwZ3Fc34wLw7y2GO 9WrpZiYKnI4n9urhLE5r1ydBInlI/1UKZWgM3/dPjJtcXMsC3vnqR9DmOxW4/SbqJDjP3XzO FleT4yip3AaNhPGwEPTZrubVp5hp/JojaZn690TLRwOFXg8NcjpOEs0Bq9M+OLpmsF0flrgs yDfS7y+SQ17R4Iq9T7RxZvZVAh510yGGIZIETYO/4Dh417VVm+gaksOVh2egetpUUvYYc0Ub KaP+5F/WGNrmRb1F6SKypvLlKkYAHCsUUSzsAGl9gbQhEEpuOMbUKp1979HoRMkW+8046kIo 8BZ6ph8izG/g4dZOaEqKGEhqdhYIB7UwMtFFuPtSs5Nl6JrZYni/nzFtTmtVCgcj9PNqrzqt fNFYhNznD6St6wxp3TOm9D3TQF0dzwBM1jZpb8WvmK3k6oy8hbpjiBzxn3kyRA9Vzy+PdbN/ G5a1k0rpZu/ivpBuLCDVGljUmgQigXg6xkk5UxBoHp7MPvG9prZ5jqdEa2r1KgnGjaq+VJsu Uqrw10dVgeG1NulDU1+sQl+/mwtflbkimhjDDjxsVgfrv7uvV/9be+gGm1KATuqdgCboSb1s QAo5ARfwFfChrnh+fTfPpPKHABEBAAGJAiQEGAEIAA8FAlgnLnwCGwwFCQlmAYAACgkQwRES 3m+p4fno9w/4m+swztkzxSWdutjgSv2mw+PdrKWVGFAUD2HoY1Qpi5LNLE6s9pP3qzwpQYwK viOufVJYWZ540ss6BImZBGJwyHouacqrpZjpRo5+ftj07rY1SNd8QjcHDggPfpgJ1D4Il3Xi vRg5/gzkXnRu8dXeVvMP1Ndk/F5wcoLZlQwFtPfu2xyRYIsveXMoyypAvAFSaAGXU0hRzuDJ fGI3LFvpI9UXU2C4MMzjfyZyD2NJEDKOACTo85QQzxgheTDQaDocXW00wknXFMwEItiXp8dO 2zEml/3Kj4efDfjqGpjNefjK0cnj02Byt7y6GozWXyIylrXu0SN9qWRzUVZH3+q+ijA4q3Gm 9uWzLdpjN4QWAiiaEvMhLPohp9DdLsy3kAWWrA3+pAfHSTZXrobMMbSeBkE9E4/WxdKl0nM7 TNslAWcxkTd/7Ly9cxwT8wFdHuQB1hgCmIQxDNXHL1N1ANTeUYum1w9nUg6e1M0UWu+nk3Cw qL7oL2KZe13mQnU/CFwlhbf+i//j3SXrQLlIVQv9Fn805bxIcVo9yqUZyoiV7EUpvOsxDCZh ej3mNYF5nRCf6trEJQVk0aLC26zJAYExykdUlRqc4I13XPhlt+aFSMMkoL/thYO6e9oNFK6Q aJEKXomzxxqpceJVmPH6zvqJbOboAdE/mOD0PoS1M6saIQ== Subject: Non-interactive multivolume restore Message-ID: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> Date: Sun, 3 Feb 2019 21:50:43 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Cf9bT0kJ2TTkVFOGpvykC9BpU77yV0FUD" X-Spam-Status: No, score=-1.0 required=10.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mattapan.m5p.com X-Rspamd-Queue-Id: 5DB7C6ADAA X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of george@m5p.com designates 74.104.188.4 as permitted sender) smtp.mailfrom=george@m5p.com X-Spamd-Result: default: False [-8.41 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[m5p.com]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mailhost.m5p.com]; NEURAL_HAM_SHORT(-0.98)[-0.980,0]; IP_SCORE(-3.02)[ip: (-9.59), ipnet: 74.104.0.0/16(-4.80), asn: 701(-0.62), country: US(-0.07)]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ASN(0.00)[asn:701, ipnet:74.104.0.0/16, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 03:20:13 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Cf9bT0kJ2TTkVFOGpvykC9BpU77yV0FUD Content-Type: multipart/mixed; boundary="bpqTbD2dSwWGc5kgjzkb82C7ScNMs2knH"; protected-headers="v1" From: George Mitchell To: FreeBSD Hackers Message-ID: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> Subject: Non-interactive multivolume restore --bpqTbD2dSwWGc5kgjzkb82C7ScNMs2knH Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Historically, the restore program assumed that the volumes of a multivolume dump were on separate physical reels of tape, and that a human would have to load each tape to complete the restore. But now I have multivolume dumps that are simply separate online files from which I would like to restore without having to type each name in one at a time. However, you can give only one -f option on the command line, and additional file names are assumed to specify the files you want to restore, as opposed to additional dump volumes. I thought perhaps 'cat dumpvols... | restore -x -f -', but that gets confused at the beginning of the second volume. What's the right way to do this? -- George --bpqTbD2dSwWGc5kgjzkb82C7ScNMs2knH-- --Cf9bT0kJ2TTkVFOGpvykC9BpU77yV0FUD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEENdM4ZHktsJW5kKZXwRES3m+p4fkFAlxXqIMACgkQwRES3m+p 4fljJA/+IrRLwY4Je5CpRSppGDD2pn3aMYLymI4w5JEwL+Lrl2S3HhjPL6P3LqKW vKX+oknxLNpDPxwP10b3xyZ/ayb2AsavGm/U7GZcPda5EnyI5oe+rFGWuitn52bh Ifsj4yCrVccB9TYgWp3xqPXjy4UeCEjQdPuUSAQwJ3Te8cmTPJVemGEPrbxV62LD 3gtq2YzMrQiGWBmccQEX+sxFMaZ08X/nHndEt1MKSm0rFATPFp2x3UeISQBwSU9x iLhmF5TSKEkc82mBQxwDfCfhHrsFNiG+MzjsiEoHxQg3C7P/Ju43Yxk0VV0ZlCHp AR8lAeUg3m2l847aNbyU7Shb2IX1PD4Ceyrk3gfJVBQ9zRtcih468nqcQLcAxErE U7YXqQE0OmCO8s69qOT6vbJHYDmtbdMQoxxs1d/AI6UrcFNGAUzw0xD+PP/9275E SWZXTqut+JhGLB0XFlCOZw0hdnJlf9UQvokej7JxnRe7+G/4PhHkOxejg4YQ5WrU USVoO+/q0UXupDXWNvusTnHEP8LXA5+Zth8yGjMTBnRtdsWilc35KLKjjGVoqXGD CMZBxf3ai9tms0udT58XwZd9AuK54SjVvOvMSfXN5ZTA442MdcEGJW06eESfWFHs 697Zh9VAMTd7BQdnrtLn0H5YE0Axvx9MRMvT8aQ19+xHrklI7rM= =eTWX -----END PGP SIGNATURE----- --Cf9bT0kJ2TTkVFOGpvykC9BpU77yV0FUD-- From owner-freebsd-hackers@freebsd.org Mon Feb 4 03:30:10 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D29E814BCA0E for ; Mon, 4 Feb 2019 03:30:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CEDEC6B23E for ; Mon, 4 Feb 2019 03:30:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x835.google.com with SMTP id b8so4098796qtj.1 for ; Sun, 03 Feb 2019 19:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hmJl0QLhnQljqvbBPOkNpGTCyfpzARAmSfg1/5B1aek=; b=JXAHU7IfyNrdXTYpZCLpP1OzZLQ4HT+0Z4DF3hVwEeBL6P1eNxEpa/72Ni2m6y/4gy 5ZvX7EsT7m23m5oixwOqyfcciqZu3RBlCdhy3Errq7ghuVWdigsR3HyZfkBAZGnT06oa rhI8E2+IqBPAF1mws0nJRJJF8ZBdf9oNYK6SHHk8K0wjOnSs8muzDJGF2+PRN8U+aWFt cRjXhzj5q1F5ObxXtDAS2nLrB7t+bRb0lXofmebhYnO42Gyt55ki04msJrQMBnzN/EKH izVCP2rWOSLM7I82Ird6gQb9v23/GrTm+wzlAqV8gmM/JnQ46/eJd8VblQyw66VdqqFA HCaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hmJl0QLhnQljqvbBPOkNpGTCyfpzARAmSfg1/5B1aek=; b=FL+/+OdjFlfM5zNahe66YJ9jk2hT2t0Ce26QE72KXjtlf4WEPd4CaBz51EHxEL1YPk /dHHLmY8qVs5ZUzEPJMZXvFTBNcZWKeUsduUoWwp8v7WBoX1u9Gn0AWhWZ5pWM1jyUHQ 83YA4yY370ESEO+ADXkPyLAZV+X2mHnGgZMDAO+v12d4vyIRR4WB82sT5qGaS92alb91 gxt3RoPa+neS9eW5Slix0wo+wXxS4UE46rlXKh9BJoFOsFN4mqQDKp66Hr2Tq6Es4Xzw 5y1Y1onBf+TQGcCuBDBVKrNARglcmekvWsBuvSIvaSedPvH/3iluP86R/hEL4qYo30PN k30w== X-Gm-Message-State: AHQUAua7d7FDJmtV/GIkxdv7+EFbR6GKUIZdR9lnePkfyGxHrN8p0JKw C5KQ3iWFpm7cO2D/nrPwIVMU3jnvCr5IIVTCPOWFZA== X-Google-Smtp-Source: AHgI3IbMgjYSJDCep9kKULvZy3q4tGhHb4E4IVnYXVWhgwDrIzX/rUXdlw5XVkeHsaTUU8LbHkDQ+zZPEc+HigAf4Nc= X-Received: by 2002:ac8:3826:: with SMTP id q35mr9077486qtb.33.1549251008045; Sun, 03 Feb 2019 19:30:08 -0800 (PST) MIME-Version: 1.0 References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> In-Reply-To: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> From: Warner Losh Date: Sun, 3 Feb 2019 20:29:56 -0700 Message-ID: Subject: Re: Non-interactive multivolume restore To: George Mitchell Cc: FreeBSD Hackers X-Rspamd-Queue-Id: CEDEC6B23E X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=JXAHU7If X-Spamd-Result: default: False [-5.42 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.88)[-0.879,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[5.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-2.53)[ip: (-8.22), ipnet: 2607:f8b0::/32(-2.41), asn: 15169(-1.93), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 03:30:10 -0000 On Sun, Feb 3, 2019, 8:23 PM George Mitchell Historically, the restore program assumed that the volumes of a > multivolume dump were on separate physical reels of tape, and that a > human would have to load each tape to complete the restore. But now > I have multivolume dumps that are simply separate online files from > which I would like to restore without having to type each name in > one at a time. However, you can give only one -f option on the > command line, and additional file names are assumed to specify the > files you want to restore, as opposed to additional dump volumes. > > I thought perhaps 'cat dumpvols... | restore -x -f -', but that > gets confused at the beginning of the second volume. > > What's the right way to do this? > Multiple -f args? Maybe a printf format to clue restore into how to construct the names? Maybe also some pipe command with a similar % specification to allow restore from compressed files.. Warner > From owner-freebsd-hackers@freebsd.org Mon Feb 4 04:06:30 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC29514BD7F3 for ; Mon, 4 Feb 2019 04:06:29 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4676C5B4 for ; Mon, 4 Feb 2019 04:06:20 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp118-210-82-95.bras2.adl4.internode.on.net (HELO midget.dons.net.au) ([118.210.82.95]) by ipmail03.adl2.internode.on.net with ESMTP; 04 Feb 2019 14:31:07 +1030 Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.15.2/8.15.2) with ESMTPS id x1440qas023501 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 4 Feb 2019 14:31:02 +1030 (ACDT) (envelope-from darius@dons.net.au) Received: (from mailnull@localhost) by midget.dons.net.au (8.15.2/8.15.2/Submit) id x143xDuO019991 for ; Mon, 4 Feb 2019 14:29:13 +1030 (ACDT) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: mailnull set sender to using -f Received: from [203.31.81.59] ([203.31.81.59]) by ppp118-210-82-95.bras2.adl4.internode.on.net (envelope-sender ) (MIMEDefang) with ESMTP id x143x7VB019988; Mon, 04 Feb 2019 14:29:13 +1030 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: Non-interactive multivolume restore From: "O'Connor, Daniel" In-Reply-To: Date: Mon, 4 Feb 2019 14:29:58 +1030 Cc: George Mitchell , FreeBSD Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <6D80822F-2060-4F93-A6B3-A913D6EFF3FE@dons.net.au> References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> To: Warner Losh X-Mailer: Apple Mail (2.3445.102.3) X-Spam-Score: 1.3 (*) No, score=1.3 required=5.0 tests=HELO_MISC_IP, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 2A4676C5B4 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.68 / 15.00]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[midget.dons.net.au]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[141.137.101.150.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4739, ipnet:150.101.0.0/16, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[95.82.210.118.zen.spamhaus.org : 127.0.0.11]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.97)[0.967,0]; TAGGED_RCPT(0.00)[freebsd]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[dons.net.au]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.95)[0.954,0]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.98)[0.978,0]; R_SPF_NA(0.00)[]; IP_SCORE(0.39)[ipnet: 150.101.0.0/16(1.59), asn: 4739(0.41), country: AU(-0.04)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 04:06:30 -0000 > On 4 Feb 2019, at 13:59, Warner Losh wrote: > Multiple -f args? Maybe a printf format to clue restore into how to > construct the names? Maybe also some pipe command with a similar % > specification to allow restore from compressed files.. OP says you can only specify -f once. What about using -P? That can be scripted so you could do something = where a script checks a file for the current filename it should cat. -P pipecommand Use popen(3) to execute the sh(1) script string defined by pipecommand as the input for every volume in the backup. = This child pipeline's stdout (/dev/fd/1) is redirected to the = restore input stream, and the environment variable RESTORE_VOLUME = is set to the current volume number being read. The pipecommand = script is started each time a volume is loaded, as if it were a = tape drive. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum From owner-freebsd-hackers@freebsd.org Mon Feb 4 11:28:56 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C819114C7DD6 for ; Mon, 4 Feb 2019 11:28:56 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2624381B59 for ; Mon, 4 Feb 2019 11:28:56 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x14BShRi036227; Mon, 4 Feb 2019 03:28:43 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id x14BShW2036226; Mon, 4 Feb 2019 03:28:43 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201902041128.x14BShW2036226@pdx.rh.CN85.dnsmgr.net> Subject: Re: Non-interactive multivolume restore In-Reply-To: To: Warner Losh Date: Mon, 4 Feb 2019 03:28:43 -0800 (PST) CC: George Mitchell , FreeBSD Hackers X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 2624381B59 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.17 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.55)[0.550,0]; IP_SCORE(-0.01)[ip: (0.02), ipnet: 69.59.192.0/19(0.01), asn: 13868(-0.02), country: US(-0.07)]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.73)[0.731,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: pdx.rh.CN85.dnsmgr.net]; NEURAL_SPAM_LONG(0.01)[0.014,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 11:28:56 -0000 > On Sun, Feb 3, 2019, 8:23 PM George Mitchell > > Historically, the restore program assumed that the volumes of a > > multivolume dump were on separate physical reels of tape, and that a > > human would have to load each tape to complete the restore. But now > > I have multivolume dumps that are simply separate online files from > > which I would like to restore without having to type each name in > > one at a time. However, you can give only one -f option on the > > command line, and additional file names are assumed to specify the > > files you want to restore, as opposed to additional dump volumes. > > > > I thought perhaps 'cat dumpvols... | restore -x -f -', but that > > gets confused at the beginning of the second volume. > > > > What's the right way to do this? > > > > Multiple -f args? Maybe a printf format to clue restore into how to > construct the names? Maybe also some pipe command with a similar % > specification to allow restore from compressed files.. Doesnt restore read these file names from stdin? #!/bin/sh restore rf foo.first < Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A58F814D0D69 for ; Mon, 4 Feb 2019 13:43:45 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5306687B5D for ; Mon, 4 Feb 2019 13:43:44 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id x14DfUFZ036759 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 Feb 2019 14:41:30 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x14DfP4T036756; Mon, 4 Feb 2019 14:41:25 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Mon, 4 Feb 2019 14:41:25 +0100 (CET) From: Wojciech Puchar To: George Mitchell cc: FreeBSD Hackers Subject: Re: Non-interactive multivolume restore In-Reply-To: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> Message-ID: References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 5306687B5D X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-6.80 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[puchar.net]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.91)[-0.907,0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-3.58)[ip: (-9.44), ipnet: 194.1.144.0/24(-4.72), asn: 43476(-3.78), country: PL(0.03)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 13:43:45 -0000 > files you want to restore, as opposed to additional dump volumes. > > I thought perhaps 'cat dumpvols... | restore -x -f -', but that > gets confused at the beginning of the second volume. > > What's the right way to do this? -- George > > look at -P option. From owner-freebsd-hackers@freebsd.org Mon Feb 4 13:44:21 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D47714D0DB5 for ; Mon, 4 Feb 2019 13:44:21 +0000 (UTC) (envelope-from db@db.net) Received: from artemis.db.net (artemis.db.net [45.32.229.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9388887BC9 for ; Mon, 4 Feb 2019 13:44:19 +0000 (UTC) (envelope-from db@db.net) Received: from night.db.net (artemis.db.net [45.32.229.41]) by artemis.db.net (Postfix) with ESMTP id 4750310757; Mon, 4 Feb 2019 13:44:13 +0000 (UTC) Received: by night.db.net (Postfix, from userid 1000) id B475439874; Mon, 4 Feb 2019 08:44:11 -0500 (EST) Date: Mon, 4 Feb 2019 08:44:11 -0500 From: Diane Bruce To: George Mitchell Cc: FreeBSD Hackers Subject: Re: Non-interactive multivolume restore Message-ID: <20190204134411.GA19894@night.db.net> References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 9388887BC9 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.31 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.57)[0.574,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[db.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.92)[0.922,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx1-us2.ppe-hosted.com,mx2-us2.ppe-hosted.com,mx1-us2.ppe-hosted.com,mx2-us2.ppe-hosted.com,mx1-us2.ppe-hosted.com,mx2-us2.ppe-hosted.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.63)[0.634,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:45.32.224.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.18)[asn: 20473(1.00), country: US(-0.07)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 13:44:21 -0000 On Sun, Feb 03, 2019 at 09:50:43PM -0500, George Mitchell wrote: > Historically, the restore program assumed that the volumes of a > multivolume dump were on separate physical reels of tape, and that a > human would have to load each tape to complete the restore. But now > I have multivolume dumps that are simply separate online files from > which I would like to restore without having to type each name in > one at a time. However, you can give only one -f option on the > command line, and additional file names are assumed to specify the > files you want to restore, as opposed to additional dump volumes. > > I thought perhaps 'cat dumpvols... | restore -x -f -', but that > gets confused at the beginning of the second volume. > > What's the right way to do this? -- George > Would xargs work for this? -- - db@FreeBSD.org db@db.net http://artemis.db.net/~db From owner-freebsd-hackers@freebsd.org Mon Feb 4 13:51:38 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46B6F14D1299 for ; Mon, 4 Feb 2019 13:51:38 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id D545A881AB for ; Mon, 4 Feb 2019 13:51:36 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) by phk.freebsd.dk (Postfix) with ESMTP id CCB622025652; Mon, 4 Feb 2019 13:51:28 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTPS id x14DpSiZ032332 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 4 Feb 2019 13:51:28 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.15.2/8.15.2/Submit) id x14DpPCh032331; Mon, 4 Feb 2019 13:51:25 GMT (envelope-from phk) To: Wojciech Puchar cc: George Mitchell , FreeBSD Hackers Subject: Re: Non-interactive multivolume restore In-reply-to: From: "Poul-Henning Kamp" References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32329.1549288285.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Mon, 04 Feb 2019 13:51:25 +0000 Message-ID: <32330.1549288285@critter.freebsd.dk> X-Rspamd-Queue-Id: D545A881AB X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.68 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.78)[0.778,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.dk]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.83)[0.831,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[phk.freebsd.dk]; NEURAL_SPAM_LONG(0.71)[0.710,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; IP_SCORE(0.07)[asn: 1835(0.37), country: EU(-0.00)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 13:51:38 -0000 -------- In message , Wojciech Puch= ar writes: >> files you want to restore, as opposed to additional dump volumes. >> >> I thought perhaps 'cat dumpvols... | restore -x -f -', but that >> gets confused at the beginning of the second volume. >> >> What's the right way to do this? -- George >> >> >look at -P option. I was just about to say: -P is there exactly for tape libraries etc. -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= . From owner-freebsd-hackers@freebsd.org Tue Feb 5 01:20:40 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF7A314BA65E for ; Tue, 5 Feb 2019 01:20:39 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E436D837AA for ; Tue, 5 Feb 2019 01:20:38 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [10.100.0.31] (haymarket.m5p.com [10.100.0.31]) (authenticated bits=0) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTPSA id x151KOdA029764 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 4 Feb 2019 20:20:36 -0500 (EST) (envelope-from george+freebsd@m5p.com) Subject: Re: Non-interactive multivolume restore To: freebsd-hackers@freebsd.org References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> <32330.1549288285@critter.freebsd.dk> From: George Mitchell Openpgp: preference=signencrypt Autocrypt: addr=george+freebsd@m5p.com; prefer-encrypt=mutual; keydata= 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 Message-ID: <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> Date: Mon, 4 Feb 2019 20:20:10 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <32330.1549288285@critter.freebsd.dk> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4WAbJKeu76Mh8UCnU58rJYxajVCgQBWqi" X-Spam-Status: No, score=-1.0 required=10.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mattapan.m5p.com X-Rspamd-Queue-Id: E436D837AA X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of george@m5p.com designates 74.104.188.4 as permitted sender) smtp.mailfrom=george@m5p.com X-Spamd-Result: default: False [-8.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[m5p.com]; MX_GOOD(-0.01)[cached: mailhost.m5p.com]; NEURAL_HAM_SHORT(-0.98)[-0.975,0]; IP_SCORE(-3.04)[ip: (-9.63), ipnet: 74.104.0.0/16(-4.82), asn: 701(-0.66), country: US(-0.07)]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ASN(0.00)[asn:701, ipnet:74.104.0.0/16, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 01:20:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4WAbJKeu76Mh8UCnU58rJYxajVCgQBWqi Content-Type: multipart/mixed; boundary="eocZpxBJX5L85gHzIv284hMwhGdHjoEE5"; protected-headers="v1" From: George Mitchell To: freebsd-hackers@freebsd.org Message-ID: <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> Subject: Re: Non-interactive multivolume restore References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> <32330.1549288285@critter.freebsd.dk> In-Reply-To: <32330.1549288285@critter.freebsd.dk> --eocZpxBJX5L85gHzIv284hMwhGdHjoEE5 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2/4/19 8:51 AM, Poul-Henning Kamp wrote: > -------- > In message , Wojciech P= uchar writes: >>> files you want to restore, as opposed to additional dump volumes. >>> >>> I thought perhaps 'cat dumpvols... | restore -x -f -', but that >>> gets confused at the beginning of the second volume. >>> >>> What's the right way to do this? -- George >>> >>> >> look at -P option. >=20 > I was just about to say: -P is there exactly for tape libraries etc. >=20 Thanks to all who pointed this out to me! I think I will propose a documentation patch to give an example of this usage, as I had to go poking into the code to see exactly how this works. But first I'm verifying that my new understanding is correct. -- George --eocZpxBJX5L85gHzIv284hMwhGdHjoEE5-- --4WAbJKeu76Mh8UCnU58rJYxajVCgQBWqi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEENdM4ZHktsJW5kKZXwRES3m+p4fkFAlxY5NgACgkQwRES3m+p 4fnJexAAjzppn/hKxIm8EOUEpb+FKTU4AiY+82ampiWOEVaiRaEvAng/VBNohJUF zJMsinQ44pvJNnmEJbGpBPgH2D9p5Oh2EdSZpqL83uVzpuAOYERcjSG1fwb+f2xq W4XueCkX2wKFllgGbxR8gRiiBThqy2rKcTOUp8aHF9cfrddZsqOJ3Rm0YtIScNYa ymaNhBvwT3YnY1CGXeHJAH+8SVDCOpoMlwcTIjJtDzJkuI3JwosZ2Zj7N9GuAX6l KYWeMfv57zppZn2e0/KF2u46W/eXc2ydRgYU11JvYizIlWCYalDaHaCfScKJU0uc Lqw7Ytd/DqGDLYTl3r/kn35TxytkQkU+WI6t6xUX1fK8Eu9Ofhib+vwAorgZRTu+ 98l1J2+6HTEyne5o3N6yDEYJs4A3g99XVcA/B3zvtgg+wWfC+gJbnECsVEnqwYmo BAriFW7cXs9PomeV+qDPw7cTjhUckbF49F25ohtMEOwo1BcZOdnzNbnPcZ37pP3f A1FxAQ7p2theSZrYPu5id7gxjQO28O+cYOMyBOffOVoaT3M747HtaEZXJ40OJ7WC r9kneTzhgC0MkGoEk5KiF05vBDqRGPvvmzC5C/YznpEnd74fZHyoMS1nmdVAeB1O iYZMivwR5E8HwAzpZ6y+H9gYtOIrTfQlaAIYl6VZJLPrYzp7Hhk= =ucrM -----END PGP SIGNATURE----- --4WAbJKeu76Mh8UCnU58rJYxajVCgQBWqi-- From owner-freebsd-hackers@freebsd.org Tue Feb 5 13:37:25 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 817E514B89D5 for ; Tue, 5 Feb 2019 13:37:25 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D9C1471A85 for ; Tue, 5 Feb 2019 13:37:24 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 98F4F14B89D4; Tue, 5 Feb 2019 13:37:24 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8689A14B89D3 for ; Tue, 5 Feb 2019 13:37:24 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "land.berklix.org", Issuer "land.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 67F2F71A82 for ; Tue, 5 Feb 2019 13:37:23 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p2E52C0CB.dip0.t-ipconnect.de [46.82.192.203]) (authenticated bits=0) by land.berklix.org (8.15.2/8.15.2) with ESMTPSA id x15DbENF060155 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 Feb 2019 13:37:19 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id x15DbBU7081631 for ; Tue, 5 Feb 2019 14:37:11 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id x15DaxUK041711 for ; Tue, 5 Feb 2019 14:37:11 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201902051337.x15DaxUK041711@fire.js.berklix.net> To: hackers@freebsd.org Subject: bsd android tethering using USB cable - intermittent failure From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Aachen Kent User-agent: EXMH on FreeBSD http://www.berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ Date: Tue, 05 Feb 2019 14:36:59 +0100 X-Rspamd-Queue-Id: 67F2F71A82 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.43 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.86)[0.865,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[berklix.com]; MX_GOOD(-0.01)[cached: land.berklix.com]; NEURAL_SPAM_LONG(0.80)[0.795,0]; NEURAL_SPAM_MEDIUM(0.79)[0.795,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:144.76.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(0.08)[ipnet: 144.76.0.0/16(2.68), asn: 24940(-2.26), country: DE(-0.01)]; RECEIVED_SPAMHAUS_PBL(0.00)[203.192.82.46.zen.spamhaus.org : 127.0.0.10] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 13:37:25 -0000 Hi hackers@, I tether Androids to FreeBSDs using USB cables, Using ports/devel/android-tools-adb Mostly it works, but sometimes fails to connect, I've no idea why. I've tried: different physical androids, different versions of android (4 & 5), different physical ports (once I had a cable hanging down didnt connect on laptop socket), via hub & direct avoiding usb hub, different FreeBSDs (all of 10.4-RELEASE 11.2-RELEASE 13.0-CURRENT), 2 different FreeBSD PCs Could someone please please take a look at http://www.berklix.org/android/#adb & perhaps spot what I'm forgetting to initialise ? Thanks, Julian -- Julian Stacey, Consultant Systems Engineer, BSD Linux Unix, Munich Aachen Kent UK Stole 700,000 votes from British in EU + 3 million globally; 1.9 M in UK were too young + 1.3 M died. Fraud, fines & lies. Brexit prob. now Minority. 2nd Ref. Avoid Chaos: Revoke Article 50, plan better, re-file 50 or whatever. http://www.berklix.uk/brexit/#email_an_mp From owner-freebsd-hackers@freebsd.org Tue Feb 5 15:37:28 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9CADA14BD406 for ; Tue, 5 Feb 2019 15:37:28 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C2A1980584 for ; Tue, 5 Feb 2019 15:37:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: by mailman.ysv.freebsd.org (Postfix) id 81B6214BD403; Tue, 5 Feb 2019 15:37:27 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7008214BD401 for ; Tue, 5 Feb 2019 15:37:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from smh-06.1blu.de (smh-06.1blu.de [178.254.0.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D83480583 for ; Tue, 5 Feb 2019 15:37:26 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1gr2mf-0000GA-MI; Tue, 05 Feb 2019 16:37:14 +0100 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.86_2) (envelope-from ) id 1gr2mf-0002af-JM; Tue, 05 Feb 2019 16:37:13 +0100 Date: Tue, 5 Feb 2019 16:37:13 +0100 From: Matthias Apitz To: "Julian H. Stacey" Cc: hackers@freebsd.org Subject: Re: bsd android tethering using USB cable - intermittent failure Message-ID: <20190205153713.GA7280@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <201902051337.x15DaxUK041711@fire.js.berklix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201902051337.x15DaxUK041711@fire.js.berklix.net> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 0D83480583 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.93 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.93)[-0.932,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 15:37:28 -0000 El día Tuesday, February 05, 2019 a las 02:36:59PM +0100, Julian H. Stacey escribió: > Hi hackers@, > I tether Androids to FreeBSDs using USB cables, Using > ports/devel/android-tools-adb Mostly it works, but sometimes fails to > connect, I've no idea why. > > I've tried: different physical androids, different versions of android (4 & 5), > different physical ports (once I had a cable hanging down didnt connect on > laptop socket), via hub & direct avoiding usb hub, different FreeBSDs > (all of 10.4-RELEASE 11.2-RELEASE 13.0-CURRENT), 2 different FreeBSD PCs > > Could someone please please take a look at > http://www.berklix.org/android/#adb > & perhaps spot what I'm forgetting to initialise ? With my Ubuntu Phone (which has as well an Android kernel behind the scenes), I learned that one must enable developer mode and even with this on connect the display *must* be unlocked and a pop up answered about the permission. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub October, 7 -- The GDR was different: Peace instead of Bundeswehr and wars, Druschba instead of Nazis, to live instead of to survive. From owner-freebsd-hackers@freebsd.org Tue Feb 5 17:35:55 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 253D414C0E04 for ; Tue, 5 Feb 2019 17:35:55 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 933DC850A6 for ; Tue, 5 Feb 2019 17:35:54 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 5317414C0E03; Tue, 5 Feb 2019 17:35:54 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B86814C0DFE for ; Tue, 5 Feb 2019 17:35:54 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "land.berklix.org", Issuer "land.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 67721850A5 for ; Tue, 5 Feb 2019 17:35:52 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p2E52C0CB.dip0.t-ipconnect.de [46.82.192.203]) (authenticated bits=0) by land.berklix.org (8.15.2/8.15.2) with ESMTPSA id x15GZ3Zr065339 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Feb 2019 16:35:08 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id x15GZ0eL082783; Tue, 5 Feb 2019 17:35:00 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id x15GYg7l077811; Tue, 5 Feb 2019 17:34:54 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201902051634.x15GYg7l077811@fire.js.berklix.net> To: Matthias Apitz cc: hackers@freebsd.org Subject: Re: bsd android tethering using USB cable - intermittent failure From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Aachen Kent User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Tue, 05 Feb 2019 16:37:13 +0100." <20190205153713.GA7280@sh4-5.1blu.de> Date: Tue, 05 Feb 2019 17:34:42 +0100 X-Rspamd-Queue-Id: 67721850A5 X-Spamd-Bar: ++++++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [8.13 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; MISSING_MIME_VERSION(2.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: land.berklix.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.69)[-0.693,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:144.76.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[203.192.82.46.zen.spamhaus.org : 127.0.0.10]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[berklix.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.78)[0.784,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.992,0]; R_SPF_NA(0.00)[]; GREYLIST(0.00)[pass,body]; IP_SCORE(0.16)[ip: (0.38), ipnet: 144.76.0.0/16(2.68), asn: 24940(-2.26), country: DE(-0.01)] X-Spam: Yes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 17:35:55 -0000 Matthias Apitz wrote: > El día Tuesday, February 05, 2019 a las 02:36:59PM +0100, Julian H. Stacey escribió: > > > Hi hackers@, > > I tether Androids to FreeBSDs using USB cables, Using > > ports/devel/android-tools-adb Mostly it works, but sometimes fails to > > connect, I've no idea why. > > > > I've tried: different physical androids, different versions of android (4 & 5), > > different physical ports (once I had a cable hanging down didnt connect on > > laptop socket), via hub & direct avoiding usb hub, different FreeBSDs > > (all of 10.4-RELEASE 11.2-RELEASE 13.0-CURRENT), 2 different FreeBSD PCs > > > > Could someone please please take a look at > > http://www.berklix.org/android/#adb > > & perhaps spot what I'm forgetting to initialise ? > > With my Ubuntu Phone (which has as well an Android kernel behind the > scenes), I learned that one must enable developer mode and even with > this on connect the display *must* be unlocked and a pop up answered > about the permission. Thanks , Yes I've got developer mode on (7 taps on build version) & dont know how to lock display so always on, & yes I do always touch screen to tether. Ive tried rebooting BSD today didnt help. Dont think ive tried rebooting the Androids today. I wondered if I had some hidden faulty initialiser file so just removed a bunch of ~/.[a-zA-Z]* that I didnt recognise or didnt want. Weirdly, adb shell has now just connected on the phone I want to move data on. & also weirdly ifconfig -a does Not display a ue0: eg from past: ue0: flags=8802 metric 0 mtu 1500 ether xx:xx:xx:xx:xx:xx though I thought I needed ue to tether with, ifconfig -a just shows ether & local bge0: & lo0: Unfortunately my background devd set up the connection before I killed it & switched to foreground /sbin/devd -d so xterm scroll back does not show what device, but I grabbed a tar copy of /dev to look at later My Android popped up with a less often seen screen: USB PC Connection Connect as Media device (MTP) which shows pre-ticked Green Camera (PTP) which shows blank, un-checked. Well I wont disturb that pair of devs that are ready to talk, I'll start long transfer of data I need, but I will contine to experiment on another pair of devs, Cheers, Julian -- Julian Stacey, Consultant Systems Engineer, BSD Linux Unix, Munich Aachen Kent UK Stole 700,000 votes from British in EU + 3 million globally; 1.9 M in UK were too young + 1.3 M died. Fraud, fines & lies. Brexit prob. now Minority. 2nd Ref. Avoid Chaos: Revoke Article 50, plan better, re-file 50 or whatever. http://www.berklix.uk/brexit/#email_an_mp From owner-freebsd-hackers@freebsd.org Tue Feb 5 18:13:23 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A057F14C39E6 for ; Tue, 5 Feb 2019 18:13:23 +0000 (UTC) (envelope-from waitman@waitman.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E627F87AC4 for ; Tue, 5 Feb 2019 18:13:22 +0000 (UTC) (envelope-from waitman@waitman.net) Received: by mailman.ysv.freebsd.org (Postfix) id A55C314C39E5; Tue, 5 Feb 2019 18:13:22 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 802E714C39E3 for ; Tue, 5 Feb 2019 18:13:22 +0000 (UTC) (envelope-from waitman@waitman.net) Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FC6387AC3 for ; Tue, 5 Feb 2019 18:13:21 +0000 (UTC) (envelope-from waitman@waitman.net) Date: Tue, 05 Feb 2019 18:13:09 +0000 To: "hackers@freebsd.org" From: Waitman Gobble Reply-To: Waitman Gobble Subject: Re: bsd android tethering using USB cable - intermittent failure Message-ID: In-Reply-To: <201902051634.x15GYg7l077811@fire.js.berklix.net> References: <201902051634.x15GYg7l077811@fire.js.berklix.net> Feedback-ID: a9EiCCViSiSHQ6Bx5OnM7zSE3j9mdPjjMltovBgA7v_vv_C4nKI9vbMXvmk_xW33cGmibh2zGAa2Co0Llrno4A==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 0FC6387AC3 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.991,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 18:13:23 -0000 =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Tuesday, February 5, 2019 12:34 PM, Julian H. Stacey w= rote: > Matthias Apitz wrote: > > > El d=C3=ADa Tuesday, February 05, 2019 a las 02:36:59PM +0100, Julian H= . Stacey escribi=C3=B3: > > > > > Hi hackers@, > > > I tether Androids to FreeBSDs using USB cables, Using > > > ports/devel/android-tools-adb Mostly it works, but sometimes fails to > > > connect, I've no idea why. > > > I've tried: different physical androids, different versions of androi= d (4 & 5), > > > different physical ports (once I had a cable hanging down didnt conne= ct on > > > laptop socket), via hub & direct avoiding usb hub, different FreeBSDs > > > (all of 10.4-RELEASE 11.2-RELEASE 13.0-CURRENT), 2 different FreeBSD = PCs > > > Could someone please please take a look at > > > http://www.berklix.org/android/#adb > > > & perhaps spot what I'm forgetting to initialise ? > > > > With my Ubuntu Phone (which has as well an Android kernel behind the > > scenes), I learned that one must enable developer mode and even with > > this on connect the display must be unlocked and a pop up answered > > about the permission. > > Thanks , Yes I've got developer mode on (7 taps on build version) > & dont know how to lock display so always on, & yes I do always > touch screen to tether. > > Ive tried rebooting BSD today didnt help. Dont think ive tried > rebooting the Androids today. I wondered if I had some hidden > faulty initialiser file so just removed a bunch of ~/.[a-zA-Z]* > that I didnt recognise or didnt want. > > Weirdly, adb shell has now just connected on the phone I want to > move data on. > > & also weirdly ifconfig -a > does Not display a ue0: eg from past: > ue0: flags=3D8802 metric 0 mtu 1500 > > =09ether xx:xx:xx:xx:xx:xx > > > though I thought I needed ue to tether with, > ifconfig -a just shows ether & local bge0: & lo0: > > Unfortunately my background devd set up the connection before I > killed it & switched to foreground /sbin/devd -d so xterm scroll > back does not show what device, but I grabbed a tar copy of /dev > to look at later > > My Android popped up with a less often seen screen: USB PC Connection > Connect as > Media device (MTP) which shows pre-ticked Green > Camera (PTP) which shows blank, un-checked. > > Well I wont disturb that pair of devs that are ready to talk, > I'll start long transfer of data I need, > > but I will contine to experiment on another pair of devs, > > Cheers, > Julian > I've done the android connect on FreeBSD quite often without any trouble, f= or years, however one time it acted the way you described I decided it was = a crappy cable. I threw the cable in the trash and totally stopped having t= hat problem. (just in case you didn't try different cables) Waitman Gobble From owner-freebsd-hackers@freebsd.org Tue Feb 5 18:46:05 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C244214C53FB for ; Tue, 5 Feb 2019 18:46:05 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B33EB8A4F9 for ; Tue, 5 Feb 2019 18:45:59 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [10.100.0.31] (haymarket.m5p.com [10.100.0.31]) (authenticated bits=0) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTPSA id x15Ijap3035880 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 5 Feb 2019 13:45:52 -0500 (EST) (envelope-from george+freebsd@m5p.com) To: freebsd-hackers@freebsd.org References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> <32330.1549288285@critter.freebsd.dk> <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> From: George Mitchell Openpgp: preference=signencrypt Autocrypt: addr=george+freebsd@m5p.com; prefer-encrypt=mutual; keydata= mQINBFgnLnwBEADAJDiBKQX77LFRz9wZW8mz3KvaQol2nIremcws0F1mz/zgFlk6uhQVtwnL wb4XL5LdFwcNE1+QZzPLcbYWoWQlz0lBw1bMuKAgr0S6V2e0+I0DqhKeslVFctcTwtvT6pnK VLZXO/7ZGAaLzG4K5vSPzgoevU+YI/pxNsVCH2UO/c3jQW63uEt25mIZbCF1Pu4jgp4RhIgF ujn877r/j6OwBwjzRUu3E6ADp+U825d+5YCuQMEH0wIPnn9GTpXvfdKdbwOIl2akqXqs4cnk iATWfK3r6D4mvDEj1OPHlTvJYcfic7aOIiAwmx1C1v78GjXOdOOA0SGffNix3C2/8oZUO1+V Aet4MKpUKkduWSvULhIkHNZ5Nu8SIJOqge8pmtHxuNXAMfMrAjMdjPwwBFLsYg3Xa2E2oJwg ehTauwd/EDJFcVCyDCyCAYOi/BH/+XQyxzgDlY9N9qj9tHqhVPI6XK7t8UVffGiZUq4rHp5J RdOToqiTNC6eCJBczhMIW+DuFvWU9e6W708T1dz0Accn6Lrgk4eRIn3GFPBG+TxnpjAqHsbW 607dcnD3YKAqY4e+khczL4EObhe7dC1v2fmZiAC6Ds3WHR11IfqoUgCkIwJ590Ej+ElygJFF XxI82wtEz9hkeLLvItpyEJNVjppViRW+Dgl/U7ypHB3qDgYjgwARAQABtChHZW9yZ2UgTWl0 Y2hlbGwgPGdlb3JnZStmcmVlYnNkQG01cC5jb20+iQJUBBMBCAA+FiEENdM4ZHktsJW5kKZX wRES3m+p4fkFAlhZcR0CGyMFCQlmAYAFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQwRES 3m+p4flqmw/9Emr/ydTG2n9o/IX1yVCNcHVFenVrcOY0L+DGQYZRO/XpLvsGYcuSIQId1w7h l4HZKI89ri2fF2ks6upMqBajLf8s7a8PnYrbw5bPaoOFyNTjv57GLZVsYw95kmMUpK6siuAA fXvHfKUpC/sThbwSv/1CLryVG74+5vdI8j7cQeDM436FThxlVfHKrILIiL34D4WThFB3hV/Y 2A+mQwXmdLcuQXXeAazqsFJL8sgEKSC7GMcExDkVpGc5Rh2hu97a4Sa7qWX9G/YdZOrcDacJ XxfvePn3m3WfRtXN/r0lUfiVXiqkFfbvqSaZQ0I4UvZXNGd/gH4jKHtX9RTH9G96UZeHNoMo tPw9U0fx8Ceh72nUL9qzqnmok/ryWm+6gt4Q1eRP7QAosOa1g/RgUdS1Z9IuCmbXMDp5kbNw L4ZoDMF5U3mmh8/IOKkhGopNLbNv0mwUgC59pnCptiOVx8DyckXWC4L2r6PKbWGrcGIzsUER 9smfL10gpp5H5agjwwPZI6/kzJ0R5nBzQWAlwqI73YAy6JI0HTD6lvxW7yWm2fGjEfmyaBOU 8OLUin7auoFSn+QmD5yNCUn5Ls77qHARkT1ZGocAnQkvZBGTwXpvyJixygXsm+vSUFDYBOSn cR54vdXOEMqrJk6SGau5YI9V7EhQVveE1BUp8ofWf2oo4RG5Ag0EWCcufAEQALuTOxmqMFE+ ieev/rcL3wVJrcuKS+pBbKCY9IIL0OwVf98HQJJcgdOsdDhruVd19nJNlwZ3Fc34wLw7y2GO 9WrpZiYKnI4n9urhLE5r1ydBInlI/1UKZWgM3/dPjJtcXMsC3vnqR9DmOxW4/SbqJDjP3XzO FleT4yip3AaNhPGwEPTZrubVp5hp/JojaZn690TLRwOFXg8NcjpOEs0Bq9M+OLpmsF0flrgs yDfS7y+SQ17R4Iq9T7RxZvZVAh510yGGIZIETYO/4Dh417VVm+gaksOVh2egetpUUvYYc0Ub KaP+5F/WGNrmRb1F6SKypvLlKkYAHCsUUSzsAGl9gbQhEEpuOMbUKp1979HoRMkW+8046kIo 8BZ6ph8izG/g4dZOaEqKGEhqdhYIB7UwMtFFuPtSs5Nl6JrZYni/nzFtTmtVCgcj9PNqrzqt fNFYhNznD6St6wxp3TOm9D3TQF0dzwBM1jZpb8WvmK3k6oy8hbpjiBzxn3kyRA9Vzy+PdbN/ G5a1k0rpZu/ivpBuLCDVGljUmgQigXg6xkk5UxBoHp7MPvG9prZ5jqdEa2r1KgnGjaq+VJsu Uqrw10dVgeG1NulDU1+sQl+/mwtflbkimhjDDjxsVgfrv7uvV/9be+gGm1KATuqdgCboSb1s QAo5ARfwFfChrnh+fTfPpPKHABEBAAGJAiQEGAEIAA8FAlgnLnwCGwwFCQlmAYAACgkQwRES 3m+p4fno9w/4m+swztkzxSWdutjgSv2mw+PdrKWVGFAUD2HoY1Qpi5LNLE6s9pP3qzwpQYwK viOufVJYWZ540ss6BImZBGJwyHouacqrpZjpRo5+ftj07rY1SNd8QjcHDggPfpgJ1D4Il3Xi vRg5/gzkXnRu8dXeVvMP1Ndk/F5wcoLZlQwFtPfu2xyRYIsveXMoyypAvAFSaAGXU0hRzuDJ fGI3LFvpI9UXU2C4MMzjfyZyD2NJEDKOACTo85QQzxgheTDQaDocXW00wknXFMwEItiXp8dO 2zEml/3Kj4efDfjqGpjNefjK0cnj02Byt7y6GozWXyIylrXu0SN9qWRzUVZH3+q+ijA4q3Gm 9uWzLdpjN4QWAiiaEvMhLPohp9DdLsy3kAWWrA3+pAfHSTZXrobMMbSeBkE9E4/WxdKl0nM7 TNslAWcxkTd/7Ly9cxwT8wFdHuQB1hgCmIQxDNXHL1N1ANTeUYum1w9nUg6e1M0UWu+nk3Cw qL7oL2KZe13mQnU/CFwlhbf+i//j3SXrQLlIVQv9Fn805bxIcVo9yqUZyoiV7EUpvOsxDCZh ej3mNYF5nRCf6trEJQVk0aLC26zJAYExykdUlRqc4I13XPhlt+aFSMMkoL/thYO6e9oNFK6Q aJEKXomzxxqpceJVmPH6zvqJbOboAdE/mOD0PoS1M6saIQ== Subject: Re: Non-interactive multivolume restore Message-ID: Date: Tue, 5 Feb 2019 13:45:29 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vFm0ljvzvqQCoBXTboW14UjG3Kcorz81Y" X-Spam-Status: No, score=-1.0 required=10.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mattapan.m5p.com X-Rspamd-Queue-Id: B33EB8A4F9 X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of george@m5p.com designates 74.104.188.4 as permitted sender) smtp.mailfrom=george@m5p.com X-Spamd-Result: default: False [-8.43 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[m5p.com]; MX_GOOD(-0.01)[mailhost.m5p.com]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; IP_SCORE(-3.05)[ip: (-9.67), ipnet: 74.104.0.0/16(-4.83), asn: 701(-0.69), country: US(-0.07)]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ASN(0.00)[asn:701, ipnet:74.104.0.0/16, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 18:46:06 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vFm0ljvzvqQCoBXTboW14UjG3Kcorz81Y Content-Type: multipart/mixed; boundary="KumFB4YJvvFLCUFVu6wiQmL1OyI1SsN39"; protected-headers="v1" From: George Mitchell To: freebsd-hackers@freebsd.org Message-ID: Subject: Re: Non-interactive multivolume restore References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> <32330.1549288285@critter.freebsd.dk> <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> In-Reply-To: <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> --KumFB4YJvvFLCUFVu6wiQmL1OyI1SsN39 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2/4/19 8:20 PM, George Mitchell wrote: > On 2/4/19 8:51 AM, Poul-Henning Kamp wrote: >> -------- >> In message , Wojciech = Puchar writes: >>>> files you want to restore, as opposed to additional dump volumes. >>>> >>>> I thought perhaps 'cat dumpvols... | restore -x -f -', but that >>>> gets confused at the beginning of the second volume. >>>> >>>> What's the right way to do this? -- George >>>> >>>> >>> look at -P option. >> >> I was just about to say: -P is there exactly for tape libraries etc. >> >=20 > Thanks to all who pointed this out to me! I think I will propose a > documentation patch to give an example of this usage, as I had to go > poking into the code to see exactly how this works. But first I'm > verifying that my new understanding is correct. -- George >=20 This does NOT work the way I expected. I created links to the volumes of my dump named dump1, dump2, ... dumpN. Then I ran this command: restore -x -s 1 -P 'cat ../dump$RESTORE_VOLUME' Surprise number one: despite the "-s 1" option, the program asked me: If you are extracting just a few files, start with the last volume and work towards the first; restore can quickly skip tapes that have no further files to extract. Otherwise, begin with volume 1. Specify next volume #: So I answered "1" and got my next surprise. Before continuing from volume 1 to volume 2, this appeared: Mount tape volume 2 Enter ``none'' if there are no more tapes otherwise enter tape name (default: cat ../dump$RESTORE_VOLUME) I pressed enter. A similar dialog transpired at the end of each succeeding volume of the dump. The good news is that the restore succeeded and I had a lot less typing to do. But this doesn't meet my definition of non-interactive. What did I miss this time? --KumFB4YJvvFLCUFVu6wiQmL1OyI1SsN39-- --vFm0ljvzvqQCoBXTboW14UjG3Kcorz81Y Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEENdM4ZHktsJW5kKZXwRES3m+p4fkFAlxZ2dAACgkQwRES3m+p 4fkSIw//WcOeUDb33rbIDAlE8GBsgFAQWbxDyPB6oo/y3Jz1MGCmyMaHJ2Jo3CK6 xjvXNsP9LnMc7SEOeCXm49NLwNYV4Dm5tTKf1psxFz3JJ7hrRMMB2XqNcA9rpXAe LX5Zk7j09y3ExcmUwNp1FANqwcpKxtAmFXwGdmjO4XyKTWDCQ5tOWTj1Kz0DL7Zs jE89LdwcHrZTzC5Kw7V6dBBr4R8+xDv/rMv6vxgMxny2ZAtCAnhkRoWzymVX2gam phnVaTbPTQej3fFo1I+aSv4Pup+Sk8QwLDDvbcC/290CbqXXOIxdSo7drU2PiPbu MtTD3IY3XU9zevwHc4cDnEwztpMuz7+Z4M4l9XejnOMFZ32BPMYA6CzRHTb2YheZ anUyzOJbgZP5XuKi4fEb85W5R8MhHeG16yT9LQQdzh+VeTmZ2QZLLa/j35IYgPSz aXjZTeCt9ZvL3oj8MjA8rjVCls2yxFfXwBmj+SulwjgQFSU6NRuFQvbKhetwVBoH vR/VjTM7OdM7AWW56xR4ByJGOt9xVE6SwBz2I5PYgPd/TFzAYqq4NzIbBCO6zVN9 j+8T/U1KV7QoEBQdpI+Dm6HqziMPcJ2qnMNgumw7q8l7ILinWXkosUTWML51Ui8K qllk4OVYNInhTYEnpGU++cMwA21vluQI48DzowdpYJec91pUuQQ= =utRQ -----END PGP SIGNATURE----- --vFm0ljvzvqQCoBXTboW14UjG3Kcorz81Y-- From owner-freebsd-hackers@freebsd.org Tue Feb 5 23:12:45 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B7F914D395A for ; Tue, 5 Feb 2019 23:12:45 +0000 (UTC) (envelope-from contact@emersion.fr) Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C93596EF08 for ; Tue, 5 Feb 2019 23:12:43 +0000 (UTC) (envelope-from contact@emersion.fr) Date: Tue, 05 Feb 2019 23:12:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1549408358; bh=xEp/5u/7LMh+jxTLoHKtyWCUXqqhkyR5Tq7tdyyAgEk=; h=Date:To:From:Reply-To:Subject:Feedback-ID:From; b=qZnlqXAynjOTX0Ud5aymz8/ivVROnVQBxSNX4uCrNi7JMriVOx/g9U2/GfoJjQgpi CwDYVK0TBqjZagmx8KyOqOn8kfUxuDgIfRvX6Y4SxvsoIEqLxopbahfpflcU3U+POn olDrCkHMZC9bNAZ1tC9BgnBlBFSxAeCP3kEyTZtY= To: "freebsd-hackers@freebsd.org" , Drew DeVault From: Simon Ser Reply-To: Simon Ser Subject: Unattended FreeBSD installation Message-ID: Feedback-ID: FsVprHBOgyvh0T8bxcZ0CmvJCosWkwVUg658e_lOUQMnA9qynD8O1lGeniuBDfPSkDAUuhiKfOIXUZBfarMyvA==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: C93596EF08 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=emersion.fr header.s=protonmail header.b=qZnlqXAy; dmarc=pass (policy=none) header.from=emersion.fr; spf=pass (mx1.freebsd.org: domain of contact@emersion.fr designates 185.70.40.132 as permitted sender) smtp.mailfrom=contact@emersion.fr X-Spamd-Result: default: False [-7.86 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[emersion.fr:s=protonmail]; HAS_REPLYTO(0.00)[contact@emersion.fr]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[emersion.fr:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[emersion.fr,none]; MX_GOOD(-0.01)[mail.protonmail.ch]; IP_SCORE(-3.76)[ip: (-9.91), ipnet: 185.70.40.0/24(-4.91), asn: 19905(-3.92), country: US(-0.07)]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_IN_DNSWL_LOW(-0.10)[132.40.70.185.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 23:12:45 -0000 Hi all, For the purposes of a CI service [1], I want to write a script that generates a fresh qcow2 FreeBSD image. So far I've been using bsdinstall(8) and this has been working well when testing locally [2]. However this doesn't work when run from SSH because bsdinstall(8) uses dialog(1), which requires a TTY (or fails). I've been wondering: you offer qcow2 images available for download on your website, but how are these generated? I don't think I can use these directly since I need to enable sshd, but I could probably re-use your image generation script. If it's not possible to use the same script, do you have suggestions to make it work? Thanks, [1]: https://sr.ht [2]: https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/images/freebsd/ge= nimg -- Simon Ser https://emersion.fr From owner-freebsd-hackers@freebsd.org Tue Feb 5 23:26:28 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AD38514D3D7C for ; Tue, 5 Feb 2019 23:26:28 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 95F9A6F437 for ; Tue, 5 Feb 2019 23:26:27 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-lj1-x22a.google.com with SMTP id g11-v6so4466914ljk.3 for ; Tue, 05 Feb 2019 15:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vcQs+biSo5fRpqHPJIqcYOXqqnCS3aZMVhvuaMsiQH4=; b=PJ24bdlvNAKAz9D+4HGPIJK5kceEtwTI33GzXTcy2USGkPKbMplz9yWAt++Rycdllm Eo1htZ0H2LdycD+v0NHBCGLJkJp2VrY1m/eIAa0QBixJ0JdyQ8xtIEcROPSaxdbKxp2C eCixH/NeQFR7gJ9bvaVbj+HZszgeo0iA6NgP4e2ppw+p0NEe/sF9DwFbF/R6/WgJ1DGg H3Vqc4+IwZh0RhPXUct0Pgtg19rl9tFGmUlzjtq2wivoNvOGbCRLAG4TXXKjpGkv5XIF wAa1DzqAMNdJs9LsPYzoCmq4Q3ox2EviA8JRy3E/lNu7rFKpcw8t68FXiMCkiL399sRX 7rlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vcQs+biSo5fRpqHPJIqcYOXqqnCS3aZMVhvuaMsiQH4=; b=IYu0+tx/9N2zDjJIU+4S3/pPM46HbBgjJ7VewCgB0oabCkCUm7CN0pAAwxV7G3tW0p 5b11vYR4v1Ot2zIor/hOzPEl3Hpf3orc80kvhs0KsuVLnJRsbJ1ukY+I5rk1ctUsKKWv 0zkFAJjb2AM2RlDui4vaJz25Xkeg0ghCrFjFKX0oYFut9ir/YlbQX3G8j423lcSt0FYv AME4I5hju1zGQaQnkgbHPD5gZLWJiHHsiItRGB8xLgUy0uLZy5kmLUidwJTtPHsOUKqP JoYLRcM2SQ7GothKf6JGwnbAA2rQm0R/epIPw0WG2MCjPmOLbOEQ+OHHLon/er8ircEF /5Uw== X-Gm-Message-State: AHQUAuanULa6qDnd3/6YhS9khT3mi1PZQocHPUszqEbbpTIDGfGseVzW oHAraYqIZLOptWmjMS7pzj3AJQJkGCQbDQv+ShVGk8uo X-Google-Smtp-Source: AHgI3IZZCgVkk70FJL2iFnGQrfllVEQes1CznI4s/06VoKnc2w3CnIQqZkrPdQsMjVRqzI73HCXDcVAomJ0gLj9vrbY= X-Received: by 2002:a2e:5cc8:: with SMTP id q191-v6mr4428339ljb.192.1549409186065; Tue, 05 Feb 2019 15:26:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Freddie Cash Date: Tue, 5 Feb 2019 15:26:14 -0800 Message-ID: Subject: Re: Unattended FreeBSD installation To: Simon Ser Cc: "freebsd-hackers@freebsd.org" , Drew DeVault X-Rspamd-Queue-Id: 95F9A6F437 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=PJ24bdlv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of fjwcash@gmail.com designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=fjwcash@gmail.com X-Spamd-Result: default: False [-6.45 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.46)[ip: (-7.99), ipnet: 2a00:1450::/32(-2.30), asn: 15169(-1.95), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 23:26:28 -0000 On Tue, Feb 5, 2019 at 3:14 PM Simon Ser wrote: > For the purposes of a CI service [1], I want to write a script that > generates a fresh qcow2 FreeBSD image. So far I've been using > bsdinstall(8) and this has been working well when testing locally [2]. > However this doesn't work when run from SSH because bsdinstall(8) uses > dialog(1), which requires a TTY (or fails). > Have you tried with -t added to the ssh command? -t will tell ssh to allocate a pseudo-TTY: -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty. -- Freddie Cash fjwcash@gmail.com From owner-freebsd-hackers@freebsd.org Tue Feb 5 23:30:54 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A909D14D3EB2 for ; Tue, 5 Feb 2019 23:30:54 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 846396F608 for ; Tue, 5 Feb 2019 23:30:53 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by mail-wr1-x42e.google.com with SMTP id t27so5603517wra.6 for ; Tue, 05 Feb 2019 15:30:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1W6FLX2xWiUIofaAE/N7aCPHqvAkFZBiO5i8fDXnCIo=; b=vWdJFbVOVMih8e8I7kcbqeAJhvnGpHR6dXxteYFxTq5OEuCvlgxKRmPTc5B1gsnNxO thpzvfNgLZLghZGx/fZXuxs1ySZXxd+m+4Zl2e9LLY81tYi40d5kQf3CcCvTJkpE9x67 9WzJw7QJYMklBO5p0WgBLRO9tTrvQdZYzmV2LyUat2q7rcQA0y8Tiz9EjloxT53c8WMs ycopg1vDqoR8HH33xB/l60y0UKQh0Bg7tgEZu/kzdaX0dJEQvjd29TROaEbXomKjyJBJ FCcVmyVXBOyKfmZWVR8EPUo+oGd42jKICZmfdQ5akkVkX/13PR4uCoo0ykrbeZYdfUEs mV4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1W6FLX2xWiUIofaAE/N7aCPHqvAkFZBiO5i8fDXnCIo=; b=FeOj8TQIX9BtL6UIiAEDk8i3Mhj3HxUAurfhyYGvzCp+ntazhdqe3/n6oGOQdDW6d1 CalsMyCJknGqsnTp2YG4Lg8kpxgZlDsVQomyA3vfMqeCziguFck/GVw9oCU++tSiLJT5 56pjCQnLFLxaBK2Oa5+7G0Pd9R8GtuFR0u8lUaHnkXOmyL0Wrrs4Vdg93ddze8YYPEAG r114x4sDji/+Ss7JZDsESuZO5kIhwKLOGuOPE3umlPJFxlMiyDZrcTfi3LnZNsryKiU0 SvSf5qSzEGEMhAxiCUQkm8PWplC+P/9FDid4AxhA7HiewBoTrjTfGG/4Va6pNk78/Q/O IFuQ== X-Gm-Message-State: AHQUAuZzFGkede/RGU2sFkUZEJB/m3xichCVqDqUK5u9ACrijZ9ESpiS UnNN2+q0Rq+u+Vf0on5y9b8td2daf1QB2EDGwMD0iAi7ELw= X-Google-Smtp-Source: AHgI3Ia2i+IRJ2f2t4QYFbFciN29IWD/pYaiz2Fv0a+qU/3hptuORIPhpmQcxFs+L4ChrAXwwnkgCXEqQvYXvNbUl0I= X-Received: by 2002:a5d:558a:: with SMTP id i10mr5275793wrv.287.1549409452264; Tue, 05 Feb 2019 15:30:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Fesenko Date: Wed, 6 Feb 2019 02:30:41 +0300 Message-ID: Subject: Re: Unattended FreeBSD installation To: Simon Ser Cc: "freebsd-hackers@freebsd.org" , Drew DeVault Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 846396F608 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=vWdJFbVO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of f0andrey@gmail.com designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=f0andrey@gmail.com X-Spamd-Result: default: False [-6.73 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[e.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.73)[ip: (-9.33), ipnet: 2a00:1450::/32(-2.30), asn: 15169(-1.95), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 23:30:54 -0000 On Wed, Feb 6, 2019 at 2:13 AM Simon Ser wrote: > > Hi all, > > For the purposes of a CI service [1], I want to write a script that > generates a fresh qcow2 FreeBSD image. So far I've been using > bsdinstall(8) and this has been working well when testing locally [2]. > However this doesn't work when run from SSH because bsdinstall(8) uses > dialog(1), which requires a TTY (or fails). > > I've been wondering: you offer qcow2 images available for download on > your website, but how are these generated? I don't think I can use these > directly since I need to enable sshd, but I could probably re-use your > image generation script. > > If it's not possible to use the same script, do you have suggestions to > make it work? > What not use make vm-release https://adventurist.me/posts/0283 If you use openstack may be need patch https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213396 From owner-freebsd-hackers@freebsd.org Tue Feb 5 23:35:36 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 076A114D41B7 for ; Tue, 5 Feb 2019 23:35:36 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2132A6FAC4 for ; Tue, 5 Feb 2019 23:35:24 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id x15NZ2Qk096113 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 6 Feb 2019 00:35:08 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: contact@emersion.fr Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id x15NZ10P074395 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 6 Feb 2019 06:35:01 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Unattended FreeBSD installation To: Simon Ser , "freebsd-hackers@freebsd.org" , Drew DeVault References: From: Eugene Grosbein Message-ID: Date: Wed, 6 Feb 2019 06:34:52 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 2132A6FAC4 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [-4.03 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MX_INVALID(0.50)[greylisted]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; IP_SCORE(-1.45)[ip: (-2.55), ipnet: 2a01:4f8::/29(-2.42), asn: 24940(-2.26), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 23:35:36 -0000 06.02.2019 6:12, Simon Ser wrote: > Hi all, > > For the purposes of a CI service [1], I want to write a script that > generates a fresh qcow2 FreeBSD image. So far I've been using > bsdinstall(8) and this has been working well when testing locally [2]. > However this doesn't work when run from SSH because bsdinstall(8) uses > dialog(1), which requires a TTY (or fails). > > I've been wondering: you offer qcow2 images available for download on > your website, but how are these generated? I don't think I can use these > directly since I need to enable sshd, but I could probably re-use your > image generation script. > > If it's not possible to use the same script, do you have suggestions to > make it work? In fact, there is absolutely nothing sacral in generating bootable FreeBSD image. Just create empty directory and use tar to extract two files from ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/11.2-RELEASE/ there: kernel.txz, base.txz (and optionally ports.txz). Add local files and configs, maybe packages. chroot(8) is handy if target arch is same as of build box Don't forget to mount devfs before running commands with chroot: mount -t devfs devfs $mountpoint Determine total size with "du -s" and create UFS image with makefs(8) using -s flag to specify size of an image adding some spare space for future use. Attach generated UFS image using mdconfig to get /dev/md0 and add bootstrap code to the image: gpart bootcode -b /boot/boot /dev/md0 Finally, wrap generated image into your container of choice (qcow2 or MBR or GPT partitioning etc.) Maybe you'll need to add primary bootstrap code depending on container type. That would be "gpart bootcode -b /boot/mbr ..." in face of disk image with MBR partitioning that also would need extra "gpart set -a active -i 1" call to mark partition bootable. That's all. From owner-freebsd-hackers@freebsd.org Wed Feb 6 08:05:19 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14DEF14C4C82 for ; Wed, 6 Feb 2019 08:05:19 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 48DC1898A7 for ; Wed, 6 Feb 2019 08:05:18 +0000 (UTC) (envelope-from guru@unixarea.de) Received: by mailman.ysv.freebsd.org (Postfix) id 0796614C4C81; Wed, 6 Feb 2019 08:05:18 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D90CE14C4C7F for ; Wed, 6 Feb 2019 08:05:17 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from smh-06.1blu.de (smh-06.1blu.de [178.254.0.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59345898A5 for ; Wed, 6 Feb 2019 08:05:17 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1grICm-0003hk-3e; Wed, 06 Feb 2019 09:05:12 +0100 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.86_2) (envelope-from ) id 1grICm-0006SA-0u; Wed, 06 Feb 2019 09:05:12 +0100 Date: Wed, 6 Feb 2019 09:05:11 +0100 From: Matthias Apitz To: "Julian H. Stacey" Cc: hackers@freebsd.org Subject: Re: bsd android tethering using USB cable - intermittent failure Message-ID: <20190206080511.GA22504@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <20190205153713.GA7280@sh4-5.1blu.de> <201902051634.x15GYg7l077811@fire.js.berklix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201902051634.x15GYg7l077811@fire.js.berklix.net> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 59345898A5 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.980,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2019 08:05:19 -0000 El día Tuesday, February 05, 2019 a las 05:34:42PM +0100, Julian H. Stacey escribió: > Thanks , Yes I've got developer mode on (7 taps on build version) > & dont know how to lock display so always on, & yes I do always > touch screen to tether. > > Ive tried rebooting BSD today didnt help. Dont think ive tried > rebooting the Androids today. I wondered if I had some hidden > faulty initialiser file so just removed a bunch of ~/.[a-zA-Z]* > that I didnt recognise or didnt want. > > Weirdly, adb shell has now just connected on the phone I want to > move data on. > > & also weirdly ifconfig -a > does Not display a ue0: eg from past: > ue0: flags=8802 metric 0 mtu 1500 > ether xx:xx:xx:xx:xx:xx > though I thought I needed ue to tether with, > ifconfig -a just shows ether & local bge0: & lo0: > > Unfortunately my background devd set up the connection before I > killed it & switched to foreground /sbin/devd -d so xterm scroll > back does not show what device, but I grabbed a tar copy of /dev > to look at later > > My Android popped up with a less often seen screen: USB PC Connection > Connect as > Media device (MTP) which shows pre-ticked Green > Camera (PTP) which shows blank, un-checked. > > Well I wont disturb that pair of devs that are ready to talk, > I'll start long transfer of data I need, > > but I will contine to experiment on another pair of devs, I think you must not have this interface 'ue0', i.e. you must not enable 'rndis' in the gadget. Or use TCP and SSH or ADB, not both. See this life example: I have not set in the BQ: android-gadget-service enable rndis # ifconfig ue0 ifconfig: interface ue0 does not exist attach BQ E4.5 # tail /var/log/messages ... Feb 6 08:50:16 c720-r342378 kernel: ugen0.4: at usbus0 # adb start-server * daemon not running; starting now at tcp:5037 * daemon started successfully # adb devices -l List of devices attached JU000435 device usb:0:4 product:krillin model:Aquaris_E4_5_Ubuntu_Edition device:krillin transport_id:1 # adb shell phablet@ubuntu-phablet:~$ phablet@ubuntu-phablet:~$ uname -a Linux ubuntu-phablet 3.4.67 #1 SMP PREEMPT Mon Jun 6 12:04:40 UTC 2016 b75400e armv7l armv7l armv7l GNU/Linux matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub October, 7 -- The GDR was different: Peace instead of Bundeswehr and wars, Druschba instead of Nazis, to live instead of to survive. From owner-freebsd-hackers@freebsd.org Fri Feb 8 20:51:10 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1D4A14C5157 for ; Fri, 8 Feb 2019 20:51:09 +0000 (UTC) (envelope-from lists@sidju.se) Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17F7F6B80A for ; Fri, 8 Feb 2019 20:51:07 +0000 (UTC) (envelope-from lists@sidju.se) Date: Fri, 08 Feb 2019 20:50:50 +0000 To: freebsd-hackers@freebsd.org From: Sidju Reply-To: Sidju Subject: nosh init system Message-ID: Feedback-ID: yWziOT21xGmlou7iIbFfzQnZChMdlYRMdNkbeAaoQyx2tVusmig79wzBVeOF2FDH6yLezQz8bCF622c-cZjJKA==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 17F7F6B80A X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.73 / 15.00]; HAS_REPLYTO(0.00)[lists@sidju.se]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.01)[mailsec.protonmail.ch,mail.protonmail.ch]; DKIM_TRACE(0.00)[sidju.se:+]; MIME_BASE64_TEXT(0.10)[]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; DMARC_POLICY_ALLOW(-0.50)[sidju.se,quarantine]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-3.74)[ip: (-9.82), ipnet: 185.70.40.0/24(-4.91), asn: 19905(-3.93), country: US(-0.07)]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_IN_DNSWL_LOW(-0.10)[22.40.70.185.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sidju.se:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_PHPMAILER_SIG(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 20:51:10 -0000 SGkgZXZlcnlvbmUuCgpJIG1pZ2h0IGJlIG1pc3Npbmcgc29tZXRoaW5nIHNpbmNlIEkgaGF2ZSBv bmx5IGJlZW4gaW4gdGhlIGdyb3VwIGZvciBhIGZldyBtb250aHMsIGJ1dCBpcyBhbnlvbmUgbG9v a2luZyBhdCB0aGUgIm5vc2giIGluaXQgc3lzdGVtICggaHR0cHM6Ly9qZGVicC5ldS9Tb2Z0d2Fy ZXMvbm9zaC8gKT8KRnJvbSB3aGF0IEkgaGF2ZSByZWFkIHRoZXJlIGlzIHNvbWUgdGFsayBvZiB3 cml0aW5nIGEgbmV3IGluaXQgc3lzdGVtOyBpcyBub3NoIGtub3duIHRvIGJlIGJhZCBpbiBzb21l IHdheSBvciBqdXN0IG9ic2N1cmUgKGl0IGRpZCB0YWtlIG1lIGEgZGVjZW50IHdoaWxlIHRvIGZp bmQpPwoKRnJvbSB3aGF0IEkgY2FuIGZpbmQgaXQgaXMgYWltaW5nIHRvIGZpbGwgYW4gc3lzdGVt ZC1zaGFwZWQgaG9sZSBpbiBhIGJldHRlciB3YXkgYW5kIHdoaWxlIG1haW50YWluaW5nIGNvbXBh dGliaWxpdHkgd2l0aCBCU0QuIEkgYW0gbm90IGV4Y2VwdGlvbmFsbHkgcmVhZCBpbiBhbmQgbWF5 IGJlIG1pc3Npbmcgc29tZSBwaXRmYWxscy4KCkkgYW0gY3VyaW91cyB3aGF0IHlvdSB0aGluayBv ZiBpdC4KCi9TaWRqdQ== From owner-freebsd-hackers@freebsd.org Fri Feb 8 21:02:35 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7EAEC14C6257 for ; Fri, 8 Feb 2019 21:02:34 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EE0006D04F for ; Fri, 8 Feb 2019 21:02:25 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [10.100.0.31] (haymarket.m5p.com [10.100.0.31]) (authenticated bits=0) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTPSA id x18L25sk026271 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 8 Feb 2019 16:02:15 -0500 (EST) (envelope-from george+freebsd@m5p.com) Subject: Re: Non-interactive multivolume restore To: freebsd-hackers@freebsd.org References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> <32330.1549288285@critter.freebsd.dk> <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> From: George Mitchell Openpgp: preference=signencrypt Autocrypt: addr=george+freebsd@m5p.com; prefer-encrypt=mutual; keydata= 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 Message-ID: <1f2f42bb-adf9-db72-25ba-b8a7a89e5b32@m5p.com> Date: Fri, 8 Feb 2019 16:01:58 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jZC2b6vu4Wdh5A5DhnzpHlcNmBQrwpEEv" X-Spam-Status: No, score=-1.0 required=10.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mattapan.m5p.com X-Rspamd-Queue-Id: EE0006D04F X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of george@m5p.com designates 74.104.188.4 as permitted sender) smtp.mailfrom=george@m5p.com X-Spamd-Result: default: False [-8.40 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[m5p.com]; MX_GOOD(-0.01)[mailhost.m5p.com]; NEURAL_HAM_SHORT(-0.92)[-0.924,0]; IP_SCORE(-3.07)[ip: (-9.69), ipnet: 74.104.0.0/16(-4.85), asn: 701(-0.72), country: US(-0.07)]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ASN(0.00)[asn:701, ipnet:74.104.0.0/16, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 21:02:35 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jZC2b6vu4Wdh5A5DhnzpHlcNmBQrwpEEv Content-Type: multipart/mixed; boundary="yI1m4BRQJHnDcESx7aRVS8qtRzFcHJ9aK"; protected-headers="v1" From: George Mitchell To: freebsd-hackers@freebsd.org Message-ID: <1f2f42bb-adf9-db72-25ba-b8a7a89e5b32@m5p.com> Subject: Re: Non-interactive multivolume restore References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> <32330.1549288285@critter.freebsd.dk> <5e7f90d8-d4a6-9ae3-3e92-2abc3103c683@m5p.com> In-Reply-To: --yI1m4BRQJHnDcESx7aRVS8qtRzFcHJ9aK Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Apparently people don't often have to restore multivolume dumps. (I rarely do it myself except that I'm in the middle of compiling an index of a plethora of ancient dumps before purging them.) Since it requires a lot of interaction (as least as far as I have been able to determine), I've writtien this silly python program to help out. It relies on misc/py-pexpect, which happily compiles in a py36 version that doesn't run, so this program specifies python2.7: --------------------------------------------------------------------- #!/usr/bin/env python2.7 from __future__ import print_function import pexpect import sys import os if len(sys.argv )< 2 or (len(sys.argv) =3D=3D 2 and sys.argv[1] =3D=3D '-= h'): print(''' Non-interactively restore from a multivolume dump. You can use a glob to specify the dump volume if the glob expands to the files in the correct order. Creates symbolic links to your dumps in $TMPDIR (or /tmp by default) and runs 'restore' with the -P option. Generates responses as needed to keep the restore program running. ''') print('You did not specify any dump volumes.') sys.exit(1) tmpdir =3D os.getenv('TMPDIR') or '/tmp' for i, volume in enumerate(sys.argv[1:]): try: os.remove(tmpdir + '/dumpvolume' + str(i + 1)) except: pass os.symlink(sys.argv[i + 1], tmpdir + '/dumpvolume' + str(i + 1)) child =3D pexpect.spawn("/sbin/restore -x -P 'cat " + tmpdir + "/dumpvolume$RESTORE_VOLUME'") child.logfile =3D sys.stdout while True: resp =3D child.expect(['Specify next volume #: ', 'default: ', "set owner/mode for '.'. .yn. ", pexpect.EOF], timeout=3D600) if resp =3D=3D 0: child.sendline('1') elif resp =3D=3D 1: child.sendline('') elif resp =3D=3D 2: child.sendline('y') else: break for i in len(sys.argv[1:]): os.delete(tmpdir + '/dumpvolume' + str(i + 1)) --yI1m4BRQJHnDcESx7aRVS8qtRzFcHJ9aK-- --jZC2b6vu4Wdh5A5DhnzpHlcNmBQrwpEEv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEENdM4ZHktsJW5kKZXwRES3m+p4fkFAlxd7k0ACgkQwRES3m+p 4fmHCA/8CNWH5KHXhkK8XQUuYwuxWM4Fc8tJpTdwQ61/oWM7QoD5pxOVGdSSTMSZ zWjEn2LEysbmP+u+wGzsG+xZPKDjzrbBDaF+QC68uVEUaIa+oYZkz+FEMS40M5fL szzcZOkL4l0ZHk4tIxzSEJqLyh4qG6FRM1llmEQ1SZATYh22DICt20J53p9xeTG0 3veTw+iomj/0dK5sH1M56MDoC32bt42DpmN+MAH4efVzG9NGumFjvZ4gc4SwTGVW iKNu2jed8jjOH3/OogxCW8B+h8ChdybLc+dK/LKp2bIDO4cTN/h+i9ORCfUmHx+h gY+f4IfYQGEwXltSU+UC0u+C6SRjBmTE0RARSk06Dw6G6cmTBpEkEhYzrHp9PSld EJF6le9E2Ixi4I0PpqWtwLiKkv1vuZFOb18ky0cK+BXBvF+0DZohBh7koZMUswlu 1KuZ3iGrYWWbmssG9MVfA+knQsaa/yFZtyxo1pTwQ69wlzOeeWnSmbTQ2zmuYlY0 OcjFEyLwq8SF/OxfkCGkNXf+TgfsOMb5KOQOP15y09OxYNwevm8nhdkPdPwLiL3z DJzRS80Aup2+z+cCBq5pl/rOozRdJpNi43M5eRcTIGGV9XxADcysCJ/rOoe0knWU 0nDvdLUh01b7QsB6l3zR3W+qg6bp/+4bNqKNS+BBIzwpz114bBc= =VHSh -----END PGP SIGNATURE----- --jZC2b6vu4Wdh5A5DhnzpHlcNmBQrwpEEv-- From owner-freebsd-hackers@freebsd.org Fri Feb 8 21:12:58 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C215E14C683A for ; Fri, 8 Feb 2019 21:12:58 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 51A126D5FB for ; Fri, 8 Feb 2019 21:12:56 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id x18LD9Uk010211 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 8 Feb 2019 22:13:09 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x18LD4MM010208; Fri, 8 Feb 2019 22:13:04 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Fri, 8 Feb 2019 22:13:04 +0100 (CET) From: Wojciech Puchar To: Sidju cc: freebsd-hackers@freebsd.org Subject: Re: nosh init system In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 51A126D5FB X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-6.86 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[puchar.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[puchar.net]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.96)[-0.962,0]; IP_SCORE(-3.58)[ip: (-9.45), ipnet: 194.1.144.0/24(-4.72), asn: 43476(-3.78), country: PL(0.03)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 21:12:58 -0000 > > I might be missing something since I have only been in the group for a few months, but is anyone looking at the "nosh" init system ( https://jdebp.eu/Softwares/nosh/ )? >> From what I have read there is some talk of writing a new init system; is nosh known to be bad in some way or just obscure (it did take me a decent while to find)? What is wrong in existing init system? From owner-freebsd-hackers@freebsd.org Fri Feb 8 21:46:45 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B4FD14C72E5 for ; Fri, 8 Feb 2019 21:46:45 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 058C36E243 for ; Fri, 8 Feb 2019 21:46:43 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id sDkCgNTlhnBo4sDkEgoIcB; Fri, 08 Feb 2019 14:31:36 -0700 X-Authority-Analysis: v=2.3 cv=J8fUEzvS c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=IkcTkHD0fZMA:10 a=CFTnQlWoA9kA:10 a=heTAvR70AAAA:8 a=2rVjqWD_AAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=kdsTNj4sS_RkQUVAs_oA:9 a=QEXdDO2ut3YA:10 a=ijvIqWjYTr4A:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=UrJ2pwYPfabwj1STkZPu:22 a=ULaUcM2Ibn9MdPUUwucP:22 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from [192.168.1.105] (S0106002401cb186f.gv.shawcable.net [70.67.125.17]) by spqr.komquats.com (Postfix) with ESMTPSA id 881D18F3; Fri, 8 Feb 2019 13:31:32 -0800 (PST) Date: Fri, 08 Feb 2019 13:31:30 -0800 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: nosh init system To: freebsd-hackers@freebsd.org, Wojciech Puchar , Sidju From: Cy Schubert Message-ID: <51AE1F01-1FE4-4ECE-9AAB-7E5625661FF0@cschubert.com> X-CMAE-Envelope: MS4wfBM+1E2U3btkxV9V1Lec24GvnkdS+1INpdvfpXZod92cOY8N9UQ2QJFtlMyO3241WzEaa7XIH034q3g1nVJRvxta2o0cAOLOCrHJBIKCBq034zP/Qe7r bBbbn3Q8s6dkmu/PlQ9JWmWu/CIBUdjc3mWhy8Gvy7weOrVLAtgVOz1V1Uv1E79lbLu5r1+KXUa/sZjYbwjHxSghKPDdsUjqxE85sTs8CdHoF69bToO3eAUq HlSwwODMSkjUdP/naKPqZg== X-Rspamd-Queue-Id: 058C36E243 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.96 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.84)[-0.844,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[137.136.59.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-1.90)[ip: (-4.93), ipnet: 64.59.128.0/20(-2.53), asn: 6327(-1.97), country: CA(-0.09)]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 21:46:45 -0000 On February 8, 2019 1:13:04 PM PST, Wojciech Puchar w= rote: >> >> I might be missing something since I have only been in the group for >a few months, but is anyone looking at the "nosh" init system ( >https://jdebp=2Eeu/Softwares/nosh/ )? >>> From what I have read there is some talk of writing a new init >system; is nosh known to be bad in some way or just obscure (it did >take me a decent while to find)? > >What is wrong in existing init system? > >_______________________________________________ >freebsd-hackers@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to >"freebsd-hackers-unsubscribe@freebsd=2Eorg" nosh isn't really mainstream=2E Why not make an port? --=20 Pardon the typos and autocorrect, small keyboard in use=2E Cheers, Cy Schubert FreeBSD UNIX: Web: http://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E From owner-freebsd-hackers@freebsd.org Fri Feb 8 21:51:35 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72F6114C7528 for ; Fri, 8 Feb 2019 21:51:35 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it1-f169.google.com (mail-it1-f169.google.com [209.85.166.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 905746E5A7 for ; Fri, 8 Feb 2019 21:51:34 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it1-f169.google.com with SMTP id r6so12811509itk.0 for ; Fri, 08 Feb 2019 13:51:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=AxWTv+L0hMKvCsAO4xzcvBHsjo7R6nBvfZJWsaHB5Og=; b=s3Uq+DfVqNiE4b06RZd2Qipr/QX4mfDx8awgqKjCFTYc/jrgk26tT2HGI/QQmk3pTX 6m7+47pwoSUSsLtYjhrFusEhhzxhdT8NdhX/fDiLdeCfhwbv++xEu3dnUQqgICJvkImW gJt1xkIh/DuZnFuXwbJYBi/xOGXhDAt3i5brIed8cca78qvuq0Perrrz6XOaXM8vLses oXgJoIKuvf7Y2BZ2OgXrFmQrB6zjydIC5E5OO0EIXe1LRPUJdmPRhU+ftZK4m0t6L/X6 8q1Qupqmm+6TeeDp6/EF788Z9p1VbBhp/VrFFZlnkU2stCqiwh2gDv/jYgwZBPXCY4sJ jmOg== X-Gm-Message-State: AHQUAubNRkg4cMMXBUgmlI6a+I15RhZzVLCUoYLr/iL0u4oTTeWTUUIy ZXuXMfJUEXziQL7p91EVAfTa8Jd9 X-Google-Smtp-Source: AHgI3IYDTXYa0vko+uNWRkgUf51uV5BHh1v9swq9Zb0vxoGjUPPuFVpAqWUiwqqSulEHhWEq5AjeUQ== X-Received: by 2002:a6b:3b0d:: with SMTP id i13mr14411074ioa.266.1549662687860; Fri, 08 Feb 2019 13:51:27 -0800 (PST) Received: from mail-it1-f170.google.com (mail-it1-f170.google.com. [209.85.166.170]) by smtp.gmail.com with ESMTPSA id n129sm1894546itb.20.2019.02.08.13.51.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 13:51:27 -0800 (PST) Received: by mail-it1-f170.google.com with SMTP id r6so12811424itk.0 for ; Fri, 08 Feb 2019 13:51:27 -0800 (PST) X-Received: by 2002:a24:2f82:: with SMTP id j124mr356380itj.166.1549662687568; Fri, 08 Feb 2019 13:51:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Fri, 8 Feb 2019 13:51:16 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: nosh init system To: Sidju Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 905746E5A7 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.166.169 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-5.94 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.95)[-0.955,0]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TAGGED_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[169.166.85.209.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[169.166.85.209.rep.mailspike.net : 127.0.0.17]; IP_SCORE(-2.97)[ip: (-9.09), ipnet: 209.85.128.0/17(-3.76), asn: 15169(-1.95), country: US(-0.07)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 21:51:35 -0000 Hi Sidju, On Fri, Feb 8, 2019 at 12:52 PM Sidju via freebsd-hackers wrote: > I might be missing something since I have only been in the group for a few months, but is anyone looking at the "nosh" init system ( https://jdebp.eu/Softwares/nosh/ )? Not that I know of. > From what I have read there is some talk of writing a new init system; is nosh known to be bad in some way or just obscure (it did take me a decent while to find)? It's good to be use precise terminology when discussing these things, because confusion can lead to the wrong idea and pedantic arguments. To be clear, FreeBSD isn't missing an *init*, which serves to launch pid 2 and reap zombies. We're missing a half-decent service management system. On Linux, systemd performs both roles. On FreeBSD, init(8) serves one role, and rc(8) is a tiny subset of a real service management system like systemd. (I think the piece we would consider replacing or supplementing would be rc(8). Part of that might be migrating some responsibilities from pid 1 to pid 2, such as spawning gettys. I don't hold strong opinions about that.) Nosh may be useful for inspiration (and portions may be used directly; it's MIT and BSD licensed). I haven't taken a thorough look at it, and I don't know of anyone else who has either. I don't believe it is suitable to be dropped in (for a host of reasons, not all technical), but I could be persuaded I am mistaken. Best regards, Conrad From owner-freebsd-hackers@freebsd.org Sat Feb 9 02:32:46 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF86D14D2CEB for ; Sat, 9 Feb 2019 02:32:45 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D7328029F; Sat, 9 Feb 2019 02:32:44 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id sID0gQQLTnBo4sID1gp6go; Fri, 08 Feb 2019 19:17:37 -0700 X-Authority-Analysis: v=2.3 cv=J8fUEzvS c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=IkcTkHD0fZMA:10 a=CFTnQlWoA9kA:10 a=6I5d2MoRAAAA:8 a=2rVjqWD_AAAA:8 a=YxBL1-UpAAAA:8 a=9pbTfcVASE4JUojms1MA:9 a=QEXdDO2ut3YA:10 a=ijvIqWjYTr4A:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=IjZwj45LgO3ly-622nXo:22 a=ULaUcM2Ibn9MdPUUwucP:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from [192.168.1.105] (S0106002401cb186f.gv.shawcable.net [70.67.125.17]) by spqr.komquats.com (Postfix) with ESMTPSA id 516FFFA4; Fri, 8 Feb 2019 18:17:33 -0800 (PST) Date: Fri, 08 Feb 2019 18:17:30 -0800 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: nosh init system To: cem@freebsd.org,Conrad Meyer ,Sidju CC: "freebsd-hackers@freebsd.org" From: Cy Schubert Message-ID: X-CMAE-Envelope: MS4wfHAhTdVa1cHJUCCwJ/hMNty37LdPNQSkeDr0OTXnXLUyfC7HPnWqanKtQbSJ3SLzxyynmAPMoRVZ2HkAvXLVXamdDLRb/BaAcfe28IRA1x1bH2ahZnvp VMeEW0DTUTsBhiGXzznJwO5CUMgziJEg0ZT9QZyOJVFHGdijU4Qx6kJV7dNSVvMipXIzsYjY13Y1jFW8p3ahEVPEcT8KAxeV+fdg0tWqI2JjAWunc7zw3igl cE1W+KPqQmPzio7kT8dy3g== X-Rspamd-Queue-Id: 6D7328029F X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-5.04 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.93)[-0.926,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[138.136.59.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-1.90)[ip: (-4.91), ipnet: 64.59.128.0/20(-2.54), asn: 6327(-1.97), country: CA(-0.09)]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 02:32:46 -0000 On February 8, 2019 1:51:16 PM PST, Conrad Meyer wrote: >Hi Sidju, > >On Fri, Feb 8, 2019 at 12:52 PM Sidju via freebsd-hackers > wrote: >> I might be missing something since I have only been in the group for >a few months, but is anyone looking at the "nosh" init system ( >https://jdebp=2Eeu/Softwares/nosh/ )? > >Not that I know of=2E > >> From what I have read there is some talk of writing a new init >system; is nosh known to be bad in some way or just obscure (it did >take me a decent while to find)? > >It's good to be use precise terminology when discussing these things, >because confusion can lead to the wrong idea and pedantic arguments=2E >To be clear, FreeBSD isn't missing an *init*, which serves to launch >pid 2 and reap zombies=2E We're missing a half-decent service >management system=2E On Linux, systemd performs both roles=2E On >FreeBSD, init(8) serves one role, and rc(8) is a tiny subset of a real >service management system like systemd=2E > >(I think the piece we would consider replacing or supplementing would >be rc(8)=2E Part of that might be migrating some responsibilities from >pid 1 to pid 2, such as spawning gettys=2E I don't hold strong opinions >about that=2E) > >Nosh may be useful for inspiration (and portions may be used directly; >it's MIT and BSD licensed)=2E I haven't taken a thorough look at it, >and I don't know of anyone else who has either=2E I don't believe it is >suitable to be dropped in (for a host of reasons, not all technical), >but I could be persuaded I am mistaken=2E > >Best regards, >Conrad >_______________________________________________ >freebsd-hackers@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to >"freebsd-hackers-unsubscribe@freebsd=2Eorg" I've been partial to Solaris (illumos) smf, started by init (through thei= r sysv inittab)=2E CDDL may not be palatable to some but if we could I'd co= nsider it again=2E --=20 Pardon the typos and autocorrect, small keyboard in use=2E Cheers, Cy Schubert FreeBSD UNIX: Web: http://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E From owner-freebsd-hackers@freebsd.org Sat Feb 9 17:32:00 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E6DA14E6CCD for ; Sat, 9 Feb 2019 17:32:00 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D18C173563; Sat, 9 Feb 2019 17:31:57 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id x19HWGig045473 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 9 Feb 2019 18:32:16 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x19HWB3a045470; Sat, 9 Feb 2019 18:32:11 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Sat, 9 Feb 2019 18:32:11 +0100 (CET) From: Wojciech Puchar To: Conrad Meyer cc: Sidju , "freebsd-hackers@freebsd.org" Subject: Re: nosh init system In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: D18C173563 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-6.42 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[puchar.net]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: puchar.net]; NEURAL_HAM_SHORT(-0.53)[-0.532,0]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.58)[ip: (-9.45), ipnet: 194.1.144.0/24(-4.72), asn: 43476(-3.78), country: PL(0.03)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 17:32:00 -0000 > pid 2 and reap zombies. We're missing a half-decent service > management system. On Linux, systemd performs both roles. On > FreeBSD, init(8) serves one role, and rc(8) is a tiny subset of a real > service management system like systemd. systemd is overcomplex crap. And a reason many people migrated to FreeBSD from linux. > > (I think the piece we would consider replacing or supplementing would > be rc(8). Part of that might be migrating some responsibilities from > pid 1 to pid 2, such as spawning gettys. I don't hold strong opinions > about that.) this make sense but with spawning gettys left to init. what do you want to improve in rc? starting services in parallel doesn't seem to be major problem to make i think. From owner-freebsd-hackers@freebsd.org Sat Feb 9 17:55:23 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8A6B14BB33F for ; Sat, 9 Feb 2019 17:55:22 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 824EE742CA; Sat, 9 Feb 2019 17:55:21 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pl1-x62f.google.com with SMTP id o6so3190851pls.13; Sat, 09 Feb 2019 09:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+m6k++sQa1W2FRe0A8HFxMm62PuIX+mykWRSm2A1yj8=; b=WMVOgpDo5cUYS/z4uGC4XaRigRC1rochG/8NdcPAtqqj/2YhzpZ4l6kMBzW1Hc6yMG bs9N9bQ62d8qlzE+/EZpn1ETBiKPT3hncVbfOVu/VD62MbYUqJH0aGXL74kFhhhP4dhT 7SSKne1PBOGTh6kfl+nN7IO3MWMAAt6WAFrsiY8SNsaRz6Gt0/YbHffKel70diP06lY3 muawtmXiWspytki0C0CtvBDWhpSebVUtaD3OuKkwzu/BEKCUM9mIk0GRemDC48d/ItwN +wq/Ytmvk3Uz82LD7mqS6w54S0zX+0C7YMNvj4YYRxdL/YtfW0OcrQzLBrGuqrfXyD4/ A1ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+m6k++sQa1W2FRe0A8HFxMm62PuIX+mykWRSm2A1yj8=; b=TwDRWOaTNrswuMvz8IvC+PftLtmY1IU/8LGla2pno7g+VWzvRzUlkb2rnxn4OvittW VlBT/IbIcc9ynR9Av5jOa9t1Svn5VO6HqztOO3LBaKVwQobvu3mKd8BQH2xkq9XwfPdj j7PnPfp7LJ8nKUnHnWtttlNiLYad80tvOJxk4MwMtbtfXiuIfeGV9rK6xrDUPXWG86aU Np/wXi6v4aO9jyn6K1+x6qjH9G2XSsBbJ6Rg6QwFlKcnKIhI9PHU0Ktiv1IM5ZVQeCU0 ZJbpjYAzTDGVjOmUf0faVdTkroc1+Z1yqJHI44UhE4/j+ede3Qlu36rVJ+G2K3pKH6aP QcPg== X-Gm-Message-State: AHQUAuZMYx15XnvefeYprbhGURhKb0IsmTigZeBQ4nOsOPmfVzts4NcJ 6i3dm1qJO1rDHb5HVOq/tMPNN3IU X-Google-Smtp-Source: AHgI3Ia6iQEOWe6ygtADkxZBhNvwDvxNH4JBbyraireoZoLNsjUI09GhlI3llO85x2MWn9mSzn+tLg== X-Received: by 2002:a17:902:ba8b:: with SMTP id k11mr29355563pls.177.1549734919948; Sat, 09 Feb 2019 09:55:19 -0800 (PST) Received: from ?IPv6:2607:fb90:8228:7e5f:ad64:b3cc:9642:9e75? ([2607:fb90:8228:7e5f:ad64:b3cc:9642:9e75]) by smtp.gmail.com with ESMTPSA id h10sm9274083pfj.89.2019.02.09.09.55.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Feb 2019 09:55:19 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: nosh init system From: Enji Cooper X-Mailer: iPhone Mail (16C104) In-Reply-To: Date: Sat, 9 Feb 2019 09:55:17 -0800 Cc: Conrad Meyer , Sidju , "freebsd-hackers@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Wojciech Puchar X-Rspamd-Queue-Id: 824EE742CA X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=WMVOgpDo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of yaneurabeya@gmail.com designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=yaneurabeya@gmail.com X-Spamd-Result: default: False [-5.99 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.81)[-0.814,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.67)[ip: (-8.85), ipnet: 2607:f8b0::/32(-2.45), asn: 15169(-1.95), country: US(-0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[f.2.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 17:55:23 -0000 On Feb 9, 2019, at 09:32, Wojciech Puchar wrote: >> pid 2 and reap zombies. We're missing a half-decent service >> management system. On Linux, systemd performs both roles. On >> FreeBSD, init(8) serves one role, and rc(8) is a tiny subset of a real >> service management system like systemd. >=20 > systemd is overcomplex crap. And a reason many people migrated to FreeBSD f= rom linux. >=20 >>=20 >> (I think the piece we would consider replacing or supplementing would >> be rc(8). Part of that might be migrating some responsibilities from >> pid 1 to pid 2, such as spawning gettys. I don't hold strong opinions >> about that.) >=20 > this make sense but with spawning gettys left to init. >=20 >=20 > what do you want to improve in rc? starting services in parallel doesn't s= eem to be major problem to make i think. Starting and stopping services based on logical events and =E2=80=9Crun leve= ls=E2=80=9D, apart from what devd handles with hardware events is what comes= to mind for me. rc(8) is also incredibly fragile when it comes to starting or stopping servi= ces beyond first boot, or when dealing with =E2=80=9Coptional=E2=80=9D servi= ces, like nis/yp. I tried to clean this up a few years ago, but it=E2=80=99s= not close to my ideal design (it feels like a bubblegum and duct tape solu= tion). Cheers, -Enji > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"= From owner-freebsd-hackers@freebsd.org Sat Feb 9 18:18:57 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5CBF14BBFDF for ; Sat, 9 Feb 2019 18:18:56 +0000 (UTC) (envelope-from debdrup@gmail.com) Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DA7074CC3 for ; Sat, 9 Feb 2019 18:18:55 +0000 (UTC) (envelope-from debdrup@gmail.com) Received: by mail-lj1-x241.google.com with SMTP id j13-v6so5658514ljc.2 for ; Sat, 09 Feb 2019 10:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=WUFkfvWdts0WcgqbGcLQvG+ts1znrWySsc5W2ax5In4=; b=QYoulfyh7kxDDcnEBBNvB4MvpUbSuF6jGBaltp1JDpxaglyLjndMszgXc/A0lJ3d1b zHRTToIvoDkEjzbA2Bd0SbqKtJ3yiQNOtJFDY0YI2cfItY+bKznCa5K5pDfp5nsWIixD s7wkdgV2IWgThg/iJPP602aUvLIjToNJm7qtaa+CihS32tf8d7ACJykCgBdyKxAHjt4i MsrObbEmBhmc6PQ4SiDABeoaCGODZjeYby1DQsCcApoP7/YA1Nn2ve56oJgwPTA4Fr3Y DwW4EUGb3/a7pe8QlaRP36qBQaQ+OnZmp/zJcgWgdDRUhcm8jS/ztgR4vv6Ng5nrpsfT 2ZmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=WUFkfvWdts0WcgqbGcLQvG+ts1znrWySsc5W2ax5In4=; b=se45o2B7LI0ijIVzzWLc+QW+SbTvd1D/PwM9G12UYv2zLcsADgyMMmxzvOE8EwqLfo k0nlIm6bDo75q3sRUzGb7YlAXmFNzkcswKuzGh84NvMGjawMrMXee5V40dayVOBldQU5 BGGJV9SN1H05W/djCtRsCOqdNIgsfSjk1QsYFxl3nzRUlIlQXZrmXuTybTN8br7TuM0v IY11HSCNUBpNGLOvfxItYqxRpIFzLkiul/63t75aPNn2biRcTmeXn+DQspqhy7AmTtlj lF479F8EZqlagvqyL9zCSol2w4cxgtYg9sdPOuRrxkHoVpGSQQR4p9vvpzeLVcn+WQ/N HmGQ== X-Gm-Message-State: AHQUAuY3awvbqByb1X/jh5KnEhiHnMHVARwGOstASZN/C/03D3q0nMlC OMAvkNsgHgINGlACuJyzxEKH3FeShQ86WfaOqykfLg== X-Google-Smtp-Source: AHgI3IY+WVPNz+jPrUgJyaen1SR1ToMPZYnS0Pmx8RurFEID+JDUdycaLq9g/HNuFBbWZ9qgSgfdWQ6XMXsqqFpdUXY= X-Received: by 2002:a2e:8605:: with SMTP id a5-v6mr17190055lji.145.1549736333254; Sat, 09 Feb 2019 10:18:53 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a2e:165d:0:0:0:0:0 with HTTP; Sat, 9 Feb 2019 10:18:52 -0800 (PST) In-Reply-To: References: From: "D. Ebdrup" Date: Sat, 9 Feb 2019 19:18:52 +0100 Message-ID: Subject: Re: nosh init system To: freebsd-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 3DA7074CC3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=QYoulfyh; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of debdrup@gmail.com designates 2a00:1450:4864:20::241 as permitted sender) smtp.mailfrom=debdrup@gmail.com X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.980,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-0.11)[ip: (3.77), ipnet: 2a00:1450::/32(-2.30), asn: 15169(-1.95), country: US(-0.07)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[1.4.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.40)[-0.400,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 18:18:57 -0000 On 2/9/19, Enji Cooper wrote: > On Feb 9, 2019, at 09:32, Wojciech Puchar wrote: > >>> pid 2 and reap zombies. We're missing a half-decent service >>> management system. On Linux, systemd performs both roles. On >>> FreeBSD, init(8) serves one role, and rc(8) is a tiny subset of a real >>> service management system like systemd. >> >> systemd is overcomplex crap. And a reason many people migrated to FreeBS= D >> from linux. >> >>> >>> (I think the piece we would consider replacing or supplementing would >>> be rc(8). Part of that might be migrating some responsibilities from >>> pid 1 to pid 2, such as spawning gettys. I don't hold strong opinions >>> about that.) >> >> this make sense but with spawning gettys left to init. >> >> >> what do you want to improve in rc? starting services in parallel doesn't >> seem to be major problem to make i think. > > Starting and stopping services based on logical events and =E2=80=9Crun l= evels=E2=80=9D, > apart from what devd handles with hardware events is what comes to mind f= or > me. > > rc(8) is also incredibly fragile when it comes to starting or stopping > services beyond first boot, or when dealing with =E2=80=9Coptional=E2=80= =9D services, like > nis/yp. I tried to clean this up a few years ago, but it=E2=80=99s not cl= ose to my > ideal design (it feels like a bubblegum and duct tape solution). > > Cheers, > -Enji > >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or= g" > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > It seems to me that while there isn't that much to be gained from the base system being parallel, trasz@ effort to get rcorder -p (which is ready for review at [1]) is still something that can massively improve startup when you're running a lot of jails that don't necessarily have any or very little interdependence. I've also heard talk of improving devd to make it react to a lot more hardware events, which I think is a laudible goal if anyone uses FreeBSD on a desktop or laptop as I do. As I see it, FreeBSD already has the basis for something similar to SMF or systemd - and while I'd prefer whatever FreeBSD gets to be closer to SMF, I still think there are valuable lessons to be learned from both systemd and launchd with regard to what's missing. I also find it a little interesting that not a lot of people seem to know about the 6th paragraph of init(8) [2]. Since I found out about it, I've referred often enough to it that I can probably paraphrase it pretty accurately: "The init utility can also be used to keep arbitrary daemons running, automatically restarting them if they die." Also, not to toot my own horn here, but in editing the latest batch of status reports, I noticed that nosh has a section that people might wanna read. [1] https://reviews.freebsd.org/D3715 [2] https://man.freebsd.org/init(8) --=20 Daniel Ebdrup aka. D. Ebdrup. From owner-freebsd-hackers@freebsd.org Sat Feb 9 18:32:30 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5EFC14C56F9 for ; Sat, 9 Feb 2019 18:32:29 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-it1-x131.google.com (mail-it1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4433754B0; Sat, 9 Feb 2019 18:32:28 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-it1-x131.google.com with SMTP id f18so5946688itb.5; Sat, 09 Feb 2019 10:32:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4arVkw4tWiizx/FglRWcDSqkqs2TE62m+t+USTSYiF8=; b=fWLRe3Y9qjPOsAGjAEw102XWLDlbHcfsM6vgjJ1NwUgLVmxpEtA5g+9H7Z+JKXMSst CtD/+ZsxKmnImPFxcPMuaC1rcl5ucQMqDvp/aRIPHMnhiU2xhpS4aIVvVQ2lcKumj7PP JOehxjHp7YiXj64DkhEkZmGPqwVc1/+gfWqHSMvA4qCvaHZWkY9zS+/SJqCQG3GZI7dE YokC5G2qFJbGjSjEg//UGOHeGGO1xnWO7rbj5z/jkn4mZzNxbFfg4lCb8uapZi9asfud ZW/bgZzvd4AEowjg0OiYc+j1JGdU9TEebcoEAaJEeW037zeBu9kDUWZwFC06ewtw8mWY vQdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4arVkw4tWiizx/FglRWcDSqkqs2TE62m+t+USTSYiF8=; b=DzkOUaWHiMuba6hN0cTmOBGzqs3iQeaTrAAit+fU2RHaDMIJv0wry7q3MYyEHbvIkP d4t+35gTJgrpbTN6Wd0EcnEeOCe8blRZ7bB8laW2XAasJkeCp3HPmSXzSDqA3MAo6i7h bnbSYX9lQdJTS35zKq9s7QzKN5tCydoQZxuuRr3GqIK6Z7YskmrYuJ5PwfI/ByKRqp0h Z6Asz9A6Kql66OgWYCIlR2oU4xecroGDNxszCiMsPiiHtXhqTvQhHpTqCF24/6uXvlLB IGyWm6Djrdlw7e3sIPEvN4b5ABiz9IUdPokARKHCp8IJCc/nv24LliSWt2osKhZFnxlq /hPA== X-Gm-Message-State: AHQUAuaTehDF74r12aAWQf1OUoaoHBzj8EuimWh6jjfmy88rOcbYPcdE qZtYUfiorIIUBCVqfS9IKt59++IH6q35PYO1aek= X-Google-Smtp-Source: AHgI3IavtYQulEaOs9t8+OOABvGCdoWQwAbwIYJ67T3J6qNnifgbhuIHBJJJMBoRU2hpO9V2zhQX1YeuuSmYxIHrbio= X-Received: by 2002:a6b:651a:: with SMTP id z26mr8526607iob.72.1549737147864; Sat, 09 Feb 2019 10:32:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adam Date: Sat, 9 Feb 2019 12:32:16 -0600 Message-ID: Subject: Re: nosh init system To: Enji Cooper Cc: Wojciech Puchar , Sidju , "freebsd-hackers@freebsd.org" , Conrad Meyer X-Rspamd-Queue-Id: B4433754B0 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=fWLRe3Y9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of amvandemore@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=amvandemore@gmail.com X-Spamd-Result: default: False [-6.24 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCPT_COUNT_FIVE(0.00)[5]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.71)[-0.712,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(-2.52)[ip: (-8.13), ipnet: 2607:f8b0::/32(-2.45), asn: 15169(-1.95), country: US(-0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 18:32:30 -0000 On Sat, Feb 9, 2019 at 11:57 AM Enji Cooper wrote: > On Feb 9, 2019, at 09:32, Wojciech Puchar wrote: > > >> pid 2 and reap zombies. We're missing a half-decent service > >> management system. On Linux, systemd performs both roles. On > >> FreeBSD, init(8) serves one role, and rc(8) is a tiny subset of a real > >> service management system like systemd. > > > > systemd is overcomplex crap. And a reason many people migrated to > FreeBSD from linux. > > > >> > >> (I think the piece we would consider replacing or supplementing would > >> be rc(8). Part of that might be migrating some responsibilities from > >> pid 1 to pid 2, such as spawning gettys. I don't hold strong opinions > >> about that.) > > > > this make sense but with spawning gettys left to init. > > > > > > what do you want to improve in rc? starting services in parallel doesn'= t > seem to be major problem to make i think. > > Starting and stopping services based on logical events and =E2=80=9Crun l= evels=E2=80=9D, > apart from what devd handles with hardware events is what comes to mind f= or > me. > > rc(8) is also incredibly fragile when it comes to starting or stopping > services beyond first boot, or when dealing with =E2=80=9Coptional=E2=80= =9D services, like > nis/yp. I tried to clean this up a few years ago, but it=E2=80=99s not cl= ose to my > ideal design (it feels like a bubblegum and duct tape solution). > "incredibly fragile" indicates there is some common, easily triggered issue with it. Can you elaborate please? I stop and restart base services and others on a regular basis and don't see an issue there although I also haven't use NIS for some time. --=20 Adam From owner-freebsd-hackers@freebsd.org Sat Feb 9 22:01:45 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4878B14CF783 for ; Sat, 9 Feb 2019 22:01:45 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 765CA84A47; Sat, 9 Feb 2019 22:01:34 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id x19M1Lho042582 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 9 Feb 2019 23:01:26 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: yaneurabeya@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id x19M1KDA018940 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 10 Feb 2019 05:01:20 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: nosh init system To: Enji Cooper , Wojciech Puchar References: Cc: Sidju , "freebsd-hackers@freebsd.org" , Conrad Meyer From: Eugene Grosbein Message-ID: <4f873d5a-57fb-57ec-3bab-7b6c2bc65689@grosbein.net> Date: Sun, 10 Feb 2019 05:01:15 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 765CA84A47 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [-3.98 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MX_INVALID(0.50)[greylisted]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[]; NEURAL_HAM_SHORT(-0.93)[-0.934,0]; IP_SCORE(-1.44)[ip: (-2.52), ipnet: 2a01:4f8::/29(-2.43), asn: 24940(-2.27), country: DE(-0.01)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 22:01:45 -0000 10.02.2019 0:55, Enji Cooper write: > rc(8) is also incredibly fragile when it comes to starting or stopping services beyond first boot, > or when dealing with “optional” services, like nis/yp. Starting/stopping services beyound first boot has really only slight connection to first boot init system, it can and should be dealt with distinct facility. Yes, our init system can be improved but please do not overcomplicate it with tasks it should not solve. From owner-freebsd-hackers@freebsd.org Sat Feb 9 23:35:10 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 840BF14D1EEA for ; Sat, 9 Feb 2019 23:35:10 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 95846880BB; Sat, 9 Feb 2019 23:35:08 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id sc9BgarsanBo4sc9CgrKeo; Sat, 09 Feb 2019 16:35:01 -0700 X-Authority-Analysis: v=2.3 cv=J8fUEzvS c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=8nJEP1OIZ-IA:10 a=CFTnQlWoA9kA:10 a=pGLkceISAAAA:8 a=heTAvR70AAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=CgU0YTBytRdL6FccJDAA:9 a=wPNLvfGTeEIA:10 a=lJIPGLpbTLIA:10 a=UrJ2pwYPfabwj1STkZPu:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 29951471; Sat, 9 Feb 2019 15:34:57 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x19NYu7Q036562; Sat, 9 Feb 2019 15:34:56 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x19NYtZe036559; Sat, 9 Feb 2019 15:34:55 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201902092334.x19NYtZe036559@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Enji Cooper cc: Wojciech Puchar , Sidju , "freebsd-hackers@freebsd.org" , Conrad Meyer Subject: Re: nosh init system In-Reply-To: Message from Enji Cooper of "Sat, 09 Feb 2019 09:55:17 -0800." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Sat, 09 Feb 2019 15:34:55 -0800 X-CMAE-Envelope: MS4wfBbV5nsHhJYUA7N0o5x+IxVcLuGOaGEpIxQHW6K/amLxVR20tDWv0JfR0Nyszil4cIofNaqxd3o2NeRRcx3lsKh7xYMEYubCTEjMAtkLeTx7D7T47MNR ENFoF+yPckTF+7E5urh44F4aXcT9yHjpgTsXaLZ73w1csFA/7ywlGCFMUbQk5K/sQC0/DgKSa6PMI/I9Q1BsTXZ95UUzuF0h9Diu9qneSfdM22L2Ho57CEkL HUOsROvXG3swsZKnyUNe7wdmH0S8BxgMknk//qohi1DLvytWxMLBf0UT2B5Mq5LE X-Rspamd-Queue-Id: 95846880BB X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.59 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; MX_GOOD(-0.01)[spqr.komquats.com]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11]; IP_SCORE(-1.92)[ip: (-4.97), ipnet: 64.59.128.0/20(-2.54), asn: 6327(-1.98), country: CA(-0.09)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; RCVD_COUNT_FIVE(0.00)[5]; RCVD_IN_DNSWL_LOW(-0.10)[137.136.59.64.list.dnswl.org : 127.0.5.1]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2019 23:35:10 -0000 In message , Enji Cooper writes : > On Feb 9, 2019, at 09:32, Wojciech Puchar wrote: > > >> pid 2 and reap zombies. We're missing a half-decent service > >> management system. On Linux, systemd performs both roles. On > >> FreeBSD, init(8) serves one role, and rc(8) is a tiny subset of a real > >> service management system like systemd. > > > > systemd is overcomplex crap. And a reason many people migrated to FreeBSD f > rom linux. > > > >> > >> (I think the piece we would consider replacing or supplementing would > >> be rc(8). Part of that might be migrating some responsibilities from > >> pid 1 to pid 2, such as spawning gettys. I don't hold strong opinions > >> about that.) > > > > this make sense but with spawning gettys left to init. > > > > > > what do you want to improve in rc? starting services in parallel doesn't se > em to be major problem to make i think. > > Starting and stopping services based on logical events and “run levels”, > apart from what devd handles with hardware events is what comes to mind for m > e. > > rc(8) is also incredibly fragile when it comes to starting or stopping servic > es beyond first boot, or when dealing with “optional” services, like nis/ > yp. I tried to clean this up a few years ago, but it’s not close to my idea > l design (it feels like a bubblegum and duct tape solution). I've been using NIS on FreeBSD for a couple of decades and still using it on my network. Except for one bad patch a few years ago it's been 100% solid. There are no startup or shutdown issues. I don't see what's so "incredibly fragile" about rc(8). That's not to say there aren't better solutions, like SMF. Where rc(8) falls down is any port or a customer's (user of FreeBSD) rc script could fail hosing the boot or worse hosing the system*. Where a solution like SMF solves the problem is that should a service which other services depend on fail, only that branch of the startup tree would fail. In that scenario, if a service fails but sshd start, a sysadmin would still be able to login remotely to resolve the problem. So in this regard rc(8) is at a disadvantage. We could address the above paragraph by starting sshd earlier during boot thereby allowing the opportunity to fix remotely. Regarding SMF, it could be implemented by rc(8) invoking smf in similar fashion as Solaris does -- Solaris invokes it through inittab(5) -- or it could through a special yet to be determined entry in ttys(5). The Solaris approach is init(8)'s sole job, through the inittab(5) entry, is to restart smf, while smf does the rest. I prefer not to discuss implementation details right now, it's premature. * Incredibly stupid people can hose SMF too. It is more complex. OTOH that complexity might scare the uninitiated from attempting something dumb. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.