guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
517 stars 150 forks source link

Fails building on DietPi - no sshd_config #193

Open calonmerc opened 1 year ago

calonmerc commented 1 year ago

/chroot_script: line 118: /etc/ssh/sshd_config: No such file or directory

After finally getting everything lined up for it to start building on DietPi, it fails at this line, shortly after adding the base Pi user.

The partition table from DietPi (may not matter):

"partitiontable": {
      "label": "dos",
      "id": "0xa0998a78",
      "device": "DietPi_RPi-ARMv8-Bullseye.img",
      "unit": "sectors",
      "sectorsize": 512,
      "partitions": [
         {
            "node": "DietPi_RPi-ARMv8-Bullseye.img1",
            "start": 2048,
            "size": 262144,
            "type": "c",
            "bootable": true
         },{
            "node": "DietPi_RPi-ARMv8-Bullseye.img2",
            "start": 264192,
            "size": 1920144,
            "type": "83"
         }
      ]
   }

Workflow run for reference: https://github.com/calonmerc/PiFireOS/actions/runs/4722075788/jobs/8376175376

guysoft commented 1 year ago

Hey, DietPi is not a disctubution I ever built for with CustomPiOS. CustomPiOS could be used to build on top of it, but you might need to maintantain your own variant. I can help a little but not support it long-term myself.

The line is comming from here: https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/base/start_chroot_script#L118

Its part of the ssh stuff for raapbian/ubuntu that ship with ssh (which you might not have).

You could set export BASE_SSH_ENABLE=no in your config file to disable it.