-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcd4122
commit 483b0f0
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
based on pmbootstrap/375814b9d2f0d08d221093e8f9d82c50d2f234c4 commit but on a version older than 3.0.0 | ||
|
||
--- a/pmb/chroot/mount.py 2024-05-18 13:34:09.000000000 -0300 | ||
+++ b/pmb/chroot/mount.py 2024-09-25 21:48:53.647857439 -0300 | ||
@@ -20,13 +20,18 @@ | ||
path = chroot + "/dev/" + str(dev[4]) | ||
if not os.path.exists(path): | ||
pmb.helpers.run.root(args, ["mknod", | ||
- "-m", str(dev[0]), # permissions | ||
path, # name | ||
str(dev[1]), # type | ||
str(dev[2]), # major | ||
str(dev[3]), # minor | ||
]) | ||
- | ||
+ pmb.helpers.run.root(args, | ||
+ [ | ||
+ "chmod", | ||
+ str(dev[0]), # perms | ||
+ path, # name | ||
+ ] | ||
+ ) | ||
# Verify major and minor numbers of created nodes | ||
for dev in pmb.config.chroot_device_nodes: | ||
path = chroot + "/dev/" + str(dev[4]) | ||
|
||
--- a/pmb/install/_install.py 2024-05-18 13:34:09.000000000 -0300 | ||
+++ a/pmb/install/_install.py 2024-09-25 21:24:49.085716314 -0300 | ||
@@ -194,8 +194,8 @@ | ||
pmb.helpers.run.root(args, ["cp", f, rootfs + "/var/cache/apk/"]) | ||
|
||
# Disable pmbootstrap repository | ||
- pmb.helpers.run.root(args, ["sed", "-i", r"/\/mnt\/pmbootstrap\/packages/d", | ||
- rootfs + "/etc/apk/repositories"]) | ||
+ pmb.helpers.run.root(args, ["sed", "-i", "", r"/\/mnt\/pmbootstrap\/packages/d", | ||
+ "/mnt/install/etc/apk/repositories"]) | ||
pmb.helpers.run.user(args, ["cat", rootfs + "/etc/apk/repositories"]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
pkgname = "pmbootstrap" | ||
pkgver = "2.3.1" | ||
pkgrel = 0 | ||
build_style = "python_pep517" | ||
hostmakedepends = [ | ||
"python-build", | ||
"python-setuptools", | ||
"python-installer", | ||
] | ||
checkdepends = ["python-pytest"] | ||
depends = ["android-tools"] | ||
pkgdesc = "Chroot/build/flash tool to develop and install postmarketOS" | ||
maintainer = "tulilirockz <[email protected]>" | ||
license = "GPL-3.0-or-later" | ||
url = "https://gitlab.com/postmarketOS/pmbootstrap" | ||
source = f"{url}/-/archive/{pkgver}/pmbootstrap-{pkgver}.tar.gz" | ||
sha256 = "aba09c0a27918dac4b07641339ccf86e6ec0d14d4602056dac44ec49af12c894" | ||
# check: requires networking | ||
options = ["!check"] |