Changeset View
Changeset View
Standalone View
Standalone View
image/solus-image-creator.py
| Show First 20 Lines • Show All 874 Lines • ▼ Show 20 Lines | def main(): | ||||
| if not do_mount("/sys/kernel/security", os.path.join(get_image_root(), "sys/kernel/security"), bind=True): | if not do_mount("/sys/kernel/security", os.path.join(get_image_root(), "sys/kernel/security"), bind=True): | ||||
| print("Unable to mount /sys/kernel/security") | print("Unable to mount /sys/kernel/security") | ||||
| clean_exit(1) | clean_exit(1) | ||||
| kernel_mounted = True | kernel_mounted = True | ||||
| # Perform AoT compilation of AppArmor | # Perform AoT compilation of AppArmor | ||||
| parser_path = os.path.join(get_image_root(), "sbin/apparmor_parser") | parser_path = os.path.join(get_image_root(), "sbin/apparmor_parser") | ||||
| if os.path.exists(parser_path): | if os.path.exists(parser_path): | ||||
| run_chroot("/usr/sbin/aa-lsm-hook-compile") | run_chroot("/usr/sbin/aa-lsm-hook") | ||||
| run_chroot("touch /etc/.updated -r /etc") | run_chroot("touch /etc/.updated -r /etc") | ||||
| run_chroot("touch /var/.updated -r /usr") | run_chroot("touch /var/.updated -r /usr") | ||||
| down_root() | down_root() | ||||
| root_mounted = False | root_mounted = False | ||||
| # TODO: Check its actually ext :P | # TODO: Check its actually ext :P | ||||
| Show All 18 Lines | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.