diff --git a/bsp/default/root_file_system/etc/passwd b/bsp/default/root_file_system/etc/passwd deleted file mode 100644 index 3a7ff4a..0000000 --- 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 0000000..05a1be0 --- /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 d103a69..6aea082 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