mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
This makes sure that libc and ld and 0755 when permissions aren't preserved.
This commit is contained in:
parent
f9ad7744a7
commit
39ae065169
@ -52,6 +52,8 @@ $uml->command("mount -t hostfs none -o $mount_point /mnt2");
|
|||||||
$uml->command("cp -a /mnt2/* /mnt1");
|
$uml->command("cp -a /mnt2/* /mnt1");
|
||||||
if ( $preserve_permissions == 0 ) {
|
if ( $preserve_permissions == 0 ) {
|
||||||
$uml->command("chown -R 0:0 /mnt1");
|
$uml->command("chown -R 0:0 /mnt1");
|
||||||
|
$uml->command("chmod 0755 /mnt1/lib/libc\.*");
|
||||||
|
$uml->command("chmod 0755 /mnt1/lib/ld-*");
|
||||||
}
|
}
|
||||||
$uml->command("umount /mnt1; umount /mnt2");
|
$uml->command("umount /mnt1; umount /mnt2");
|
||||||
$uml->halt();
|
$uml->halt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user