diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-18 14:44:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-18 14:44:57 +0000 |
commit | 53d6845684e9bb2caacbfe19d31e0b8361836d93 (patch) | |
tree | c46880fa0386ebe1dc24841c1915596a12cab3cb | |
parent | 7caf7668cc9c7c55aa1644b11bb674f4e025be93 (diff) | |
download | mkinitfs-53d6845684e9bb2caacbfe19d31e0b8361836d93.tar.bz2 mkinitfs-53d6845684e9bb2caacbfe19d31e0b8361836d93.tar.xz |
init: set permission on /root in case /root/.ssh was in apkovl
This is an ugly hack but i dont have any better ideas at the moment.
-rwxr-xr-x | initramfs-init.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in index 7e061e7..fe17b39 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -255,6 +255,8 @@ if [ -f "$ovl" ]; then ebegin "Loading user settings from $ovl" unpack_apkovl "$ovl" $sysroot eend $? $errstr + # hack, incase /root/.ssh was included in apkovl + [ -d "$sysroot/root" ] && chmod 700 "$sysroot/root" umount /media/$i 2>/dev/null & pkgs=$(sed 's/\#.*//' $sysroot/etc/lbu/packages.list 2>/dev/null) fi |