From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6223 invoked from network); 10 Nov 2020 17:59:49 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 10 Nov 2020 17:59:49 -0000 Received: (qmail 32544 invoked by uid 89); 10 Nov 2020 18:00:11 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 32537 invoked from network); 10 Nov 2020 18:00:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=3rOkVklfSr66XYzfW8ukgvo2aC2OGMvAqODEbMaF7FI=; b=MhC7s1mxuFsBxMsZbORx8E+gVB71NmpYD7msIQtwzHgU13mNWVQYcRTpoP4XvftjDb pwZcTBQcBo6jm04OQuZxFY3+8eV7Zel4PhD2CJqjqCmTSX11rEvNWV1rszRe9lTyfqGp utYuGeoCSDxRkaUojeS+uGmPb/8VrZvNKcaI4gpm+YDU4kS62lXjRWEog2MU6M8f0nHS frIeCFNrb8aGV2dpST0FG/sAKjaSlQbNSTmxA4dvHYv11ZGt2TmvkBkdqFjpxzdFin6P lTwDGT6OMM6sF5KTZBWFZf5Xbo2gTjMpt1q9BPi8Tb4YcfiUvqRt16lYtpHvdoatWoh7 XTTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=3rOkVklfSr66XYzfW8ukgvo2aC2OGMvAqODEbMaF7FI=; b=Hdfga+nAjVwXHcEklKkvQsOam3VykLumBvHJwqtGDIw6XaW1cB5vdDhi4g8cZo1XgF AUCTDbXxFZl7o9lqHiNFgneqtUyACsmPeEYrAfhRTcKALg4aZerQEq+H0Hq9xOLhVhTc GL1jI8xPli1CCFaCRRxBKJjsQZe3y+hHAXghqchfqOx03G2YtIeYdRDSKUywNRgAh7fO OCDQan22fjYjDf0/P1EhLWu0nJj9MmeZS8Mf2e9DfduCR4L/ID0dlHDVdkd1R5yS11zh 5R7UOXErZL529YSf+Z8plJ/Q77g3/5hSshsyMyZcbYpvc+raLJkn2BWMeNWcN/iLnEFq ko2w== X-Gm-Message-State: AOAM5321MRZETZ6O2kgvrzRlqdgbrOL7jvR0oi6ZBP91ImxCDXKbHWll Iru4mzTTJ73qhe+BruO+5fF1jY+v9V3QeKWD X-Google-Smtp-Source: ABdhPJznnJm4iFxLnnTDGwoCKRhWJMtMDoW3P5ngxFF2GhAMVb6reEINJrkuCIojrLrTZz4uARqG9g== X-Received: by 2002:a63:2f41:: with SMTP id v62mr17776021pgv.10.1605031182368; Tue, 10 Nov 2020 09:59:42 -0800 (PST) To: supervision@list.skarnet.org From: Muhammad Mahendra Subrata Subject: Missing "$@" at the end of the s6-linux-init invocation in basedir/bin/init script Message-ID: Date: Wed, 11 Nov 2020 00:59:38 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Hello everyone, I don't know if this problem is specific to me or I just missed some steps, after running s6-linux-init-maker with below invocation: s6-linux-init-maker -c /etc/s6/init/current -u adm -G 'agetty 38400 tty12 linux' -1 -p '/usr/bin:/usr/sbin:/bin:/sbin' -t 2 -D 3 /etc/s6/init/current I got the generated /etc/s6/init/current/bin/init script like below: #!/bin/execlineb -S0 s6-linux-init -c "/etc/s6/init/current" -m 0022 -p "/usr/bin:/usr/sbin:/bin:/sbin" -D "3" Using that generated script, I tried to boot my system by adding "4" in kernel command line hoping that it will boot to that runlevel instead of the default one (in this case it's 3) but it still booted to runlevel 3. I then looked at other scripts inside /etc/s6/init/current/bin and all of them had "$@" at the end of their respective s6-linux-init-* invocation. So I tried adding "$@" at the end of s6-linux-init invocation in /etc/s6/init/current/bin/init and tried booting to runlevel 4 again using kernel command line option as before and it booted successfully to runlevel 4. So, is that "$@" supposed to be there or not? Thanks!