mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-07 20:31:04 +03:00
Meta: Allow creating disk image without installing kernel into it
This change allows for creating smaller disk images, which is useful for creating a disk image that will be put into ram.
This commit is contained in:
parent
cf5b02e3a4
commit
a9f7267cbd
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/a9f7267cbd Pull-request: https://github.com/SerenityOS/serenity/pull/17249 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/nico ✅ Reviewed-by: https://github.com/supercomputer7
@ -117,9 +117,18 @@ if [ -f mnt/usr/Tests/Kernel/TestProcFSWrite ]; then
|
||||
chmod 4755 mnt/usr/Tests/Kernel/TestProcFSWrite
|
||||
fi
|
||||
|
||||
chmod 0400 mnt/res/kernel.map
|
||||
chmod 0400 mnt/boot/Kernel
|
||||
chmod 0400 mnt/boot/Kernel.debug
|
||||
if [ -f mnt/res/kernel.map ]; then
|
||||
chmod 0400 mnt/res/kernel.map
|
||||
fi
|
||||
|
||||
if [ -f mnt/boot/Kernel ]; then
|
||||
chmod 0400 mnt/boot/Kernel
|
||||
fi
|
||||
|
||||
if [ -f mnt/boot/Kernel.debug ]; then
|
||||
chmod 0400 mnt/boot/Kernel.debug
|
||||
fi
|
||||
|
||||
chmod 600 mnt/etc/shadow
|
||||
chmod 755 mnt/res/devel/templates/*.postcreate
|
||||
echo "done"
|
||||
|
Loading…
Reference in New Issue
Block a user