Skip to content

Commit

Permalink
enable non-free and i386 repos by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ading2210 committed Aug 28, 2024
1 parent 2f2179c commit f03fcf8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ $ nmcli connection edit <your connection name>
```

#### Steam doesn't work.
Steam doesn't work out of the box due to security features in the shim kernel preventing the `bwrap` library from working. See [issue #12](https://github.com/ading2210/shimboot/issues/26#issuecomment-2151893062) for more info.
Steam should be installed using the `sudo apt install steam` command, however it doesn't work out of the box due to security features in the shim kernel preventing the `bwrap` library from working. See [issue #12](https://github.com/ading2210/shimboot/issues/26#issuecomment-2151893062) for more info.

To get Steam running, install and run it normally. It will fail and show a message saying that "Steam now requires user namespaces to be enabled." Run `fix_bwrap` in your terminal, relaunch Steam, and it should be working again.

Expand Down
6 changes: 3 additions & 3 deletions build_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fi

if [ "$distro" = "debian" ]; then
print_info "bootstraping debian chroot"
debootstrap --arch $arch $release_name $rootfs_dir http://deb.debian.org/debian/
debootstrap --arch $arch --components=main,contrib,non-free,non-free-firmware "$release_name" "$rootfs_dir" http://deb.debian.org/debian/
chroot_script="/opt/setup_rootfs.sh"

elif [ "$distro" = "ubuntu" ]; then
Expand All @@ -68,13 +68,13 @@ elif [ "$distro" = "ubuntu" ]; then
else
repo_url="http://ports.ubuntu.com"
fi
debootstrap --arch $arch $release_name $rootfs_dir $repo_url
debootstrap --arch $arch "$release_name" "$rootfs_dir" "$repo_url"
chroot_script="/opt/setup_rootfs.sh"

elif [ "$distro" = "alpine" ]; then
print_info "downloading alpine package list"
pkg_list_url="https://dl-cdn.alpinelinux.org/alpine/latest-stable/main/x86_64/"
pkg_data="$(wget -qO- --show-progress $pkg_list_url | grep "apk-tools-static")"
pkg_data="$(wget -qO- --show-progress "$pkg_list_url" | grep "apk-tools-static")"
pkg_url="$pkg_list_url$(echo "$pkg_data" | pcregrep -o1 '"(.+?.apk)"')"

print_info "downloading and extracting apk-tools-static"
Expand Down
5 changes: 5 additions & 0 deletions rootfs/opt/setup_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ Pin: origin ${custom_repo_domain}
Pin-Priority: 1001
END

#enable i386 arch so that steam works
if [ "$arch" = "amd64" ]; then
dpkg --add-architecture i386
fi


#install certs to prevent apt ssl errors
apt-get install -y ca-certificates
Expand Down

0 comments on commit f03fcf8

Please sign in to comment.