/home to /data/user patch added
This commit is contained in:
1 parent
ad8e2b433a
commit
220ee3e84f
2 files changed
+20
-1
No files matched your search
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
|
||||||
|
index d3c795a..7ea29dc 100644
|
||||||
|
--- a/loginutils/adduser.c
|
||||||
|
+++ b/loginutils/adduser.c
|
||||||
|
@@ -227,7 +227,7 @@ int adduser_main(int argc UNUSED_PARAM, char **argv)
|
||||||
|
die_if_bad_username(pw.pw_name);
|
||||||
|
if (!pw.pw_dir) {
|
||||||
|
/* create string for $HOME if not specified already */
|
||||||
|
- pw.pw_dir = xasprintf("/home/%s", argv[0]);
|
||||||
|
+ pw.pw_dir = xasprintf("/data/user/%s", argv[0]);
|
||||||
|
}
|
||||||
|
pw.pw_passwd = (char *)"x";
|
||||||
|
if (opts & OPT_SYSTEM_ACCOUNT) {
|
||||||
@@ -8,22 +8,28 @@ email='parduscix@yandex.ru'
|
|||||||
maintainer='sulincix'
|
maintainer='sulincix'
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
|
group=(sys.base)
|
||||||
source=("https://busybox.net/downloads/busybox-$version.tar.bz2"
|
source=("https://busybox.net/downloads/busybox-$version.tar.bz2"
|
||||||
"files/busybox.sysconf"
|
"files/busybox.sysconf"
|
||||||
"files/busybox.initramfs"
|
"files/busybox.initramfs"
|
||||||
"files/udhcpc.openrc"
|
"files/udhcpc.openrc"
|
||||||
"files/udhcpc.script"
|
"files/udhcpc.script"
|
||||||
|
"data-user.patch"
|
||||||
)
|
)
|
||||||
md5sums=("585949b1dd4292b604b7d199866e9913"
|
md5sums=("585949b1dd4292b604b7d199866e9913"
|
||||||
"SKIP"
|
"SKIP"
|
||||||
"SKIP"
|
"SKIP"
|
||||||
"SKIP"
|
"SKIP"
|
||||||
"SKIP"
|
"SKIP"
|
||||||
|
"SKIP"
|
||||||
)
|
)
|
||||||
group=(sys.base)
|
|
||||||
|
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
|
prepare(){
|
||||||
|
patch -Np1 -i ../data-user.patch
|
||||||
|
}
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
make defconfig
|
make defconfig
|
||||||
sed -i "s|.*CONFIG_STATIC_LIBGCC .*|CONFIG_STATIC_LIBGCC=y|" .config
|
sed -i "s|.*CONFIG_STATIC_LIBGCC .*|CONFIG_STATIC_LIBGCC=y|" .config
|
||||||
|
|||||||
Reference in new issue
Block a user