Message ID | 1463861470-16123-2-git-send-email-ckhardin@exablox.com |
---|---|
State | Accepted |
Commit | eda809cd052dea73bca02385c7a10a4d7795c912 |
Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rBwtj35kPz9snk for <incoming@patchwork.ozlabs.org>; Sun, 22 May 2016 06:11:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=exablox-com.20150623.gappssmtp.com header.i=@exablox-com.20150623.gappssmtp.com header.b=avn4Am68; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 00EBEC0B39; Sat, 21 May 2016 20:11:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CHQ6lvxJ6dhw; Sat, 21 May 2016 20:11:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4373AC0E7E; Sat, 21 May 2016 20:11:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 752361C104A for <buildroot@lists.busybox.net>; Sat, 21 May 2016 20:11:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6E0DAC0F32 for <buildroot@lists.busybox.net>; Sat, 21 May 2016 20:11:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id re2hVSCEY-26 for <buildroot@lists.busybox.net>; Sat, 21 May 2016 20:11:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by fraxinus.osuosl.org (Postfix) with ESMTPS id CC6EEC0E7E for <buildroot@buildroot.org>; Sat, 21 May 2016 20:11:34 +0000 (UTC) Received: by mail-pf0-f170.google.com with SMTP id 206so52120213pfu.0 for <buildroot@buildroot.org>; Sat, 21 May 2016 13:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=exablox-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ItNBMWaDJUO0tFbD2rfejTXgyASsJq0BMA7I8UThSEA=; b=avn4Am685LWDhyNg78RmYWVsF9NP/tyucGAUSMe/w4mxBEgjpTQGIKoYWF5PJSoOXx 1elVfA3CkOLTZgqio7/1hTbIGYU9fP5vRBGjygYrmA397CqnYriPY7+NNhPiyX+3OOvq aq51BooYEDyNIfu/0EvzM//frQeA2CXe+ONC58PkLO97I0VwcVedPkZnLuPDvvKtsmV1 bm/A/c/tSVYlQLvaqYvnhkFFOoJdG+xTr8eTM6fJVU5rixKSyqKPfFJBZ+Xn3D5ZOWJq Lgz2fQ2sTfmJALnfEyercphKJSM78EN1L2ZbgS2q4yBtFEmZH8szWYkzZFON3b793zP3 RtUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ItNBMWaDJUO0tFbD2rfejTXgyASsJq0BMA7I8UThSEA=; b=EvyV6oAA8BWVxjxoJChwnDVT60BV99cillLICNxO2IzRdTSzGVV3f5DLnbdU8affua a+iUXXWYOPdJ0w7Vng0O1Z2lXDfEOVjCW6mBWNuhTRSRcO4l1ZBNH5MZCSQ2+5h3DpHZ aHclKRNcdGdG/mZxVmo6MfWOvWJjboaiwUiQ56Xbxik/FM77r/6g2ER58nSsekStBYhF dTGsRKgKG6yH0dFP4ygN5tTTdZ4XgvYZ1+risH0b5SoJQZwrhvxFtVynOlpGKTSL7OBJ UUAgpfJWE0gUBXlZcISfrl+PCaOKfGJKbTFcCUBYs3y9pudGnxLcR84ohbfAI8F7MRB5 5qbw== X-Gm-Message-State: AOPr4FXYJZy7dY4r3AcPV990IQBFK/T1U49y2orbYsP7ZI2m30NNUmDQsQ0TAnfWG6eOHQ== X-Received: by 10.98.19.131 with SMTP id 3mr15060771pft.17.1463861494396; Sat, 21 May 2016 13:11:34 -0700 (PDT) Received: from localhost.localdomain (50-1-97-2.dedicated.static.sonic.net. [50.1.97.2]) by smtp.gmail.com with ESMTPSA id u65sm35916483pfa.9.2016.05.21.13.11.32 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 21 May 2016 13:11:33 -0700 (PDT) From: Charles Hardin <ckhardin@exablox.com> To: buildroot@buildroot.org Date: Sat, 21 May 2016 13:11:10 -0700 Message-Id: <1463861470-16123-2-git-send-email-ckhardin@exablox.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) In-Reply-To: <1463861470-16123-1-git-send-email-ckhardin@exablox.com> References: <1463861470-16123-1-git-send-email-ckhardin@exablox.com> Cc: Charles Hardin <ckhardin@exablox.com> Subject: [Buildroot] [PATCH 1/1] sysvinit: update the inittab to support "single" from the kernel X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot <buildroot.busybox.net> List-Unsubscribe: <http://lists.busybox.net/mailman/options/buildroot>, <mailto:buildroot-request@busybox.net?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/buildroot/> List-Post: <mailto:buildroot@busybox.net> List-Help: <mailto:buildroot-request@busybox.net?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/buildroot>, <mailto:buildroot-request@busybox.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" <buildroot-bounces@busybox.net> |
diff --git a/package/sysvinit/inittab b/package/sysvinit/inittab index 27eb4a6..fad91ea 100644 --- a/package/sysvinit/inittab +++ b/package/sysvinit/inittab @@ -10,7 +10,7 @@ si2::sysinit:/bin/mkdir -p /dev/pts si3::sysinit:/bin/mkdir -p /dev/shm si4::sysinit:/bin/mount -a si5::sysinit:/bin/hostname -F /etc/hostname -si6::sysinit:/etc/init.d/rcS +rcS:12345:wait:/etc/init.d/rcS # S0:1:respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
When the kernel passes single in the command line, this translates into an init -s option that is suppose to drop into a shell after the sysinit and before the runlevel. So, in busybox this is hardcoded - but, in sysvinit using the sysinit action for the rcS means that it will always be executed even when trying to get into single user mode for repair. This change should run rcS in all of the expected runlevels 1-5 and should achieve the desired result compared to the busybox and still allow a single user shell to get started as expected before running rcS. Signed-off-by: Charles Hardin <ckhardin@exablox.com> --- package/sysvinit/inittab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)