Jump to content

Reprepare Image for Distribution


Recommended Posts

I am going to use your Banana Pi image for my media server image release.

 

I would like to know how to re-enable the regenerate ssh keys and resize the SD card on first boot (I want the password to stay the same).

Link to comment
Share on other sites

This will keep the password which you set at first login.

 

If you want to force users to change (root) password in next login use:

chage -d 0 root

There is also an option to use my script for generating a custom distribution. 

 

I am using one parameter for this:

AFTERINSTALL=""                             # command before closing image 

So if you put everything in one script you run this script here or just download additional packages with apt-get ...

 

In this case you will have the same startup procedure as mine - same root pwd, shrunk install image, auto expand, ...

Link to comment
Share on other sites

And if I want to build an image that uses a different default password, where would I change the default 1234?

 

Also thanks for adding the AFTERINSTALL (I requested it on github) as it will make building my media image much easier :)

Link to comment
Share on other sites

And if I want to build an image that uses a different default password, where would I change the default 1234?

 

Main call /configuration script ?  :)

ROOTPWD="1234"                              # forced to change @first login
Link to comment
Share on other sites

  • Igor unlocked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines