summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-09-27 16:03:30 +0200
committermaximilian attems <maks@debian.org>2006-09-27 16:03:30 +0200
commitb8c8f676a5f0da208b27e4d9bac71ae3814a1b97 (patch)
treebba2efe7783427d1ea4c414497e47ff11dda191c /update-initramfs
parent681dc7a7566afa2de5fa7d1edf8aa1c25ec451a6 (diff)
downloadinitramfs-tools-b8c8f676a5f0da208b27e4d9bac71ae3814a1b97.tar.gz
initramfs-tools-b8c8f676a5f0da208b27e4d9bac71ae3814a1b97.zip
- mkinitramfs: allow umask setting paranoid
- revert an nfs changes small fixes over the place
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-initramfs b/update-initramfs
index 4a03614..45d4631 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -138,7 +138,7 @@ delete_sha1()
# ro /boot is not modified
ro_boot_check()
{
- [ -d /proc ] || return 0
+ [ -r /proc/mounts ] || return 0
boot_opts=$(awk '/boot/{if (match($4, /ro/)) print "ro"}' /proc/mounts)
if [ -n "${boot_opts}" ]; then
echo "WARNING: /boot is ro mounted."
@@ -201,7 +201,7 @@ set_linked_version()
set_highest_version()
{
get_sorted_versions
- set - ${version_list}
+ set -- ${version_list}
version=${1}
}