Skip to content

Commit

Permalink
Merge pull request #22 from codekow/kernel-optimize
Browse files Browse the repository at this point in the history
update: fix docker build; minor kernel tweaks
  • Loading branch information
Heisath authored Jan 1, 2024
2 parents 19c38f5 + 82c0090 commit 408d885
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
6 changes: 3 additions & 3 deletions config/linux-5.15.y.config
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ CONFIG_TICK_ONESHOT=y
CONFIG_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
# CONFIG_NO_HZ_FULL is not set
# CONFIG_NO_HZ is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem

Expand Down Expand Up @@ -2111,7 +2111,7 @@ CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
CONFIG_LEGACY_PTY_COUNT=16
CONFIG_LDISC_AUTOLOAD=y

#
Expand Down Expand Up @@ -3642,7 +3642,7 @@ CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_TMPFS_XATTR is not set
CONFIG_MEMFD_CREATE=y
CONFIG_CONFIGFS_FS=y
CONFIG_CONFIGFS_FS=m
# end of Pseudo filesystems

CONFIG_MISC_FILESYSTEMS=y
Expand Down
10 changes: 5 additions & 5 deletions config/linux-default.config
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ CONFIG_TICK_ONESHOT=y
CONFIG_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
# CONFIG_NO_HZ_FULL is not set
# CONFIG_NO_HZ is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem

Expand Down Expand Up @@ -2111,7 +2111,7 @@ CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
CONFIG_LEGACY_PTY_COUNT=16
CONFIG_LDISC_AUTOLOAD=y

#
Expand Down Expand Up @@ -3581,8 +3581,8 @@ CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS4_FS=y
CONFIG_AUTOFS_FS=y
CONFIG_AUTOFS4_FS=m
CONFIG_AUTOFS_FS=m
CONFIG_FUSE_FS=m
CONFIG_CUSE=m
# CONFIG_VIRTIO_FS is not set
Expand Down Expand Up @@ -3642,7 +3642,7 @@ CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_TMPFS_XATTR is not set
CONFIG_MEMFD_CREATE=y
CONFIG_CONFIGFS_FS=y
CONFIG_CONFIGFS_FS=m
# end of Pseudo filesystems

CONFIG_MISC_FILESYSTEMS=y
Expand Down
8 changes: 7 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Build with docker / podman

Run build scripts in a container.

Note: you may have to use `sudo` to run the script to have the ability to build rootfs

```
# kernel building
docker/builder.sh
./build.sh
# rootfs & kernel building
sudo docker/builder.sh
```
10 changes: 7 additions & 3 deletions docker/builder.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#!/bin/sh
getenforce && SELINUX=':z'

getenforce && SELINUX=':z'
which podman && alias docker=podman

# docker rm mycloud-builder -f

docker build \
-t localhost/mycloud-builder \
-f docker/Dockerfile

docker rm mycloud-builder -f

docker run -it --rm \
--name mycloud-builder \
-v $(pwd):/build:z \
-v $(pwd):/build${SELINUX} \
--privileged \
localhost/mycloud-builder

0 comments on commit 408d885

Please sign in to comment.