base-files: force remount ext4 rootfs
This commit is contained in:
parent
ba50d0a481
commit
c5e3380c48
@ -18,6 +18,10 @@ do_mount_root() {
|
||||
mount_root
|
||||
boot_run_hook preinit_mount_root
|
||||
[ ! -f /etc/bench.log ] && touch /etc/bench.log
|
||||
have_ro_ext4=$(/bin/cat /proc/mounts |/bin/grep ' / ext4'|/bin/grep 'ro'|/usr/bin/wc -l)
|
||||
if [ "$have_ro_ext4" != "0" ]; then
|
||||
/usr/bin/mount -o remount,rw,noatime /
|
||||
fi
|
||||
[ -f /sysupgrade.tgz -o -f /tmp/sysupgrade.tar ] && {
|
||||
echo "- config restore -"
|
||||
cp /etc/passwd /etc/group /etc/shadow /tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user