From 5b24db92fa96fb88cf5849aa51fc3565e5417dd3 Mon Sep 17 00:00:00 2001 From: Raimonds Cicans Date: Thu, 8 Aug 2019 11:01:31 +0300 Subject: [PATCH] Fix: mkinitramfs command fails if host do not have /dev/mem --- mkinitramfs-ll.bash | 2 +- mkinitramfs-ll.sh | 2 +- mkinitramfs-ll.zsh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mkinitramfs-ll.bash b/mkinitramfs-ll.bash index 209a27f..1009257 100755 --- a/mkinitramfs-ll.bash +++ b/mkinitramfs-ll.bash @@ -101,7 +101,7 @@ function donod { [[ -c console ]] || mknod -m 600 console c 5 1 || die [[ -c urandom ]] || mknod -m 666 urandom c 1 9 || die [[ -c random ]] || mknod -m 666 random c 1 8 || die - [[ -c mem ]] || mknod -m 640 mem c 1 1 && chmod 0:9 mem || die + [[ -c mem ]] || mknod -m 640 mem c 1 1 || die [[ -c null ]] || mknod -m 666 null c 1 3 || die [[ -c tty ]] || mknod -m 666 tty c 5 0 || die [[ -c zero ]] || mknod -m 666 zero c 1 5 || die diff --git a/mkinitramfs-ll.sh b/mkinitramfs-ll.sh index d7427e8..292ae23 100755 --- a/mkinitramfs-ll.sh +++ b/mkinitramfs-ll.sh @@ -152,7 +152,7 @@ donod() { [ -c console ] || mknod -m 600 console c 5 1 || die [ -c urandom ] || mknod -m 666 urandom c 1 9 || die [ -c random ] || mknod -m 666 random c 1 8 || die - [ -c mem ] || mknod -m 640 mem c 1 1 && chmod 0:9 mem || die + [ -c mem ] || mknod -m 640 mem c 1 1 || die [ -c null ] || mknod -m 666 null c 1 3 || die [ -c tty ] || mknod -m 666 tty c 5 0 || die [ -c zero ] || mknod -m 666 zero c 1 5 || die diff --git a/mkinitramfs-ll.zsh b/mkinitramfs-ll.zsh index c6e1876..f437a64 100755 --- a/mkinitramfs-ll.zsh +++ b/mkinitramfs-ll.zsh @@ -101,7 +101,7 @@ function donod { [[ -c console ]] || mknod -m 600 console c 5 1 || die [[ -c urandom ]] || mknod -m 666 urandom c 1 9 || die [[ -c random ]] || mknod -m 666 random c 1 8 || die - [[ -c mem ]] || mknod -m 640 mem c 1 1 && chmod 0:9 mem || die + [[ -c mem ]] || mknod -m 640 mem c 1 1 || die [[ -c null ]] || mknod -m 666 null c 1 3 || die [[ -c tty ]] || mknod -m 666 tty c 5 0 || die [[ -c zero ]] || mknod -m 666 zero c 1 5 || die