diff --git a/bsp/default/root_file_system/etc/passwd b/bsp/default/root_file_system/etc/passwd deleted file mode 100644 index 3a7ff4ac47b4e400bb589dfb020057ebed02e9ad..0000000000000000000000000000000000000000 --- a/bsp/default/root_file_system/etc/passwd +++ /dev/null @@ -1,3 +0,0 @@ -root:$1$OmvoKpjK$e.lPVnBxsrAbNV4EoH3xb1:0:0:root:/root:/bin/ash -nobody:*:65534:65534:nobody:/var:/bin/false -daemon:*:65534:65534:daemon:/var:/bin/false \ No newline at end of file diff --git a/build_patches/set_root_password.patch b/build_patches/set_root_password.patch new file mode 100644 index 0000000000000000000000000000000000000000..05a1be0ff06dc4c748962574ddee35c989ac9f5e --- /dev/null +++ b/build_patches/set_root_password.patch @@ -0,0 +1,8 @@ +--- package/base-files/files/etc/shadow ++++ package/base-files/files/etc/shadow +@@ -1,4 +1,4 @@ +-root::0:0:99999:7::: ++root:$1$OmvoKpjK$e.lPVnBxsrAbNV4EoH3xb1:0:0:99999:7::: + daemon:*:0:0:99999:7::: + ftp:*:0:0:99999:7::: + network:*:0:0:99999:7::: diff --git a/buildscript b/buildscript index d103a69f08c1a38f425b669300d4da99c7ec4f18..6aea082aabc8273c3eaaf9ec1c27c26342e81bb5 100755 --- a/buildscript +++ b/buildscript @@ -159,6 +159,9 @@ prepare() { # This changes the default behavior of sysupgrade to not save the config patch -p0 -d "$target" -i "$PWD"/build_patches/sysupgrade_no_config_save.patch + # set default password to 'ffol' + patch -p0 -d "$target" -i "$PWD"/build_patches/set_root_password.patch + #saves ~200MB for each build test -d ./src/dl || mkdir ./src/dl ln -s ../../src/dl "$target"/dl