Skip to content

Commit

Permalink
mkinitramfs-ll.{ba,z}sh: minor /etc/mtab fix
Browse files Browse the repository at this point in the history
This file should be readable and not symlinked to /proc/mounts to avoid
its creatation on each boot.
  • Loading branch information
tokiclover committed Sep 30, 2014
1 parent c4e5bea commit d098a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mkinitramfs-ll.bash
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ ln -sf lib{${opts[-arc]},} &&
done
echo "build=$(date +%Y-%m-%d-%T)"
} >etc/${PKG[name]}/id
touch etc/fstab
ln -fs /proc/mounts etc/mtab
touch etc/{fs,m}tab

cp -a /dev/{console,random,urandom,mem,null,tty{,[0-6]},zero} dev/ || donod

Expand Down
3 changes: 1 addition & 2 deletions mkinitramfs-ll.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ ln -sf lib{${opts[-arc]},} &&
for key (${(k)PKG[@]}) print "${key}=${PKG[$key]}"
print "build=$(date +%Y-%m-%d-%T)"
} >etc/${PKG[name]}/id
touch etc/fstab
ln -fs /proc/mounts etc/mtab
touch etc/{fs,m}tab

cp -a /dev/{console,random,urandom,mem,null,tty{,[0-6]},zero} dev/ || donod
if [[ ${${(pws:.:)opts[-kv]}[1]} -eq 3 ]] &&
Expand Down

0 comments on commit d098a01

Please sign in to comment.