WSAGAScript icon indicating copy to clipboard operation
WSAGAScript copied to clipboard

apply.sh script not working please help

Open avikpl1911 opened this issue 3 years ago • 3 comments

Modifing build.prop for each image -> fixing system -> fixing vendor -> fixing product -> fixing system_ext removing duplicate apps from system Copying GApps files to system... Applying root file ownership Setting directory permissions find: ‘/mnt/product/overlay’: No such file or directory Setting file permissions find: ‘/mnt/product/overlay’: No such file or directory Applying SELinux security contexts to directories find: ‘/mnt/product/overlay’: No such file or directory Applying SELinux security contexts to files find: ‘/mnt/product/overlay’: No such file or directory Applying SELinux security contexts to props Applying SELinux policy !! Apply completed !!

find: ‘/mnt/product/overlay’: No such file or directory How to fix it?

avikpl1911 avatar Apr 20 '22 12:04 avikpl1911

extend_and_mount_images.sh script seems to be broken.

mzzt@Tempe:~/wsa/WSAGAScript$ sudo ./extend_and_mount_images.sh
chk product.img
Usage: e2fsck [-panyrcdfktvDFV] [-b superblock] [-B blocksize]
                [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
                [-E extended-options] [-z undo_file] device

Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external_journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
 -z undo_file         Create an undo file
Resizing product.img
resize2fs 1.44.1 (24-Mar-2018)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [-b|-s|new_size] [-S RAID-stride] [-z undo_file]

chk system.img
Usage: e2fsck [-panyrcdfktvDFV] [-b superblock] [-B blocksize]
                [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
                [-E extended-options] [-z undo_file] device

Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external_journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
 -z undo_file         Create an undo file
Resizing system.img
resize2fs 1.44.1 (24-Mar-2018)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [-b|-s|new_size] [-S RAID-stride] [-z undo_file]

chk system_ext.img
Usage: e2fsck [-panyrcdfktvDFV] [-b superblock] [-B blocksize]
                [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
                [-E extended-options] [-z undo_file] device

Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external_journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
 -z undo_file         Create an undo file
Resizing system_ext.img
resize2fs 1.44.1 (24-Mar-2018)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [-b|-s|new_size] [-S RAID-stride] [-z undo_file]

chk vendor.img
Usage: e2fsck [-panyrcdfktvDFV] [-b superblock] [-B blocksize]
                [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
                [-E extended-options] [-z undo_file] device

Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external_journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
 -z undo_file         Create an undo file
Resizing vendor.img
resize2fs 1.44.1 (24-Mar-2018)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [-b|-s|new_size] [-S RAID-stride] [-z undo_file]

Creating mount point for product
Creating mount point for system_ext
Creating mount point for system
Creating mount point for vendor
Mounting product
mount: bad usage
Try 'mount --help' for more information.
Mounting system_ext
mount: bad usage
Try 'mount --help' for more information.
Mounting system
mount: bad usage
Try 'mount --help' for more information.
Mounting vendor
mount: bad usage
Try 'mount --help' for more information.
!! Images mounted !!
mzzt@Tempe:~/wsa/WSAGAScript$

The-MAZZTer avatar May 22 '22 16:05 The-MAZZTer

It looks like even if you symlink a directory name without spaces in it, if the original directory has spaces somehow the script still tries to use that. WTF Linux?

The-MAZZTer avatar May 22 '22 16:05 The-MAZZTer

Oh, it;'s when you use sudo. Using sudo bash and then moving back to the proper folder fixes that. Not sure if that is OP's issue but it sounds similar to mine.

The-MAZZTer avatar May 22 '22 16:05 The-MAZZTer