summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2007-04-06 23:00:58 +0200
committermaximilian attems <maks@debian.org>2007-04-06 23:00:58 +0200
commit5182887b98795207caa1d2142cba0b4bc9e0aec0 (patch)
tree673ac17dff8e6afc52b1be5d2754f07239cfa74b
parentb40436b200c024167cc289b63a2edb456a6cb258 (diff)
downloadinitramfs-tools-5182887b98795207caa1d2142cba0b4bc9e0aec0.tar.gz
initramfs-tools-5182887b98795207caa1d2142cba0b4bc9e0aec0.zip
mkinitramfs: set PATH with sbin
allows non-root user creation of initramfs :)
-rw-r--r--debian/changelog8
-rwxr-xr-xmkinitramfs1
2 files changed, 7 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 9e4031b..73466c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,10 +44,14 @@ initramfs-tools (0.86) UNRELEASED; urgency=low
* mkinitramfs: Don't add backup scripts to initramfs. (closes: 378682)
(LP: #78348)
- * scripts/functions: run_scripts() return immediately if passed dir
+ * scripts/functions: run_scripts() return immediately if passed dir
does not exist. Empty dirs without boot script aren't created anymore.
- -- maximilian attems <maks@debian.org> Thu, 5 Apr 2007 21:16:45 +0200
+ * mkinitramfs: Set PATH with /sbin to allow non-root user usage.
+ Thanks Bob Montgomery <bob.montgomery@hp.com> for the suggestion.
+ (closes: 409995)
+
+ -- maximilian attems <maks@debian.org> Fri, 6 Apr 2007 22:40:56 +0200
initramfs-tools (0.85g) unstable; urgency=high
diff --git a/mkinitramfs b/mkinitramfs
index c348516..17e1846 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -1,6 +1,7 @@
#!/bin/sh
umask 0022
+export PATH='/usr/bin:/sbin:/bin'
# Defaults
keep="n"