From: Harald Hoyer Date: Fri, 20 May 2011 18:08:59 +0000 (+0200) Subject: dracut-functions: make created directories writable X-Git-Tag: 011~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2627d8a345eef226c1baecc591dfc222836f0be1;p=thirdparty%2Fdracut.git dracut-functions: make created directories writable --- diff --git a/dracut-functions b/dracut-functions index a9817c12d..ac7fd763c 100755 --- a/dracut-functions +++ b/dracut-functions @@ -236,7 +236,10 @@ inst_dir() { [[ -h ${initdir}$_file ]] && _file=$(readlink "${initdir}$_file") # create directory mkdir -m 0755 -p "${initdir}$_file" || return 1 - [[ -d "$_file" ]] && chmod --reference="$_file" "${initdir}$_file" + if [[ -d "$_file" ]]; then + chmod --reference="$_file" "${initdir}$_file" + chmod u+w "${initdir}$_file" + fi fi done }