mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Remove firstboot thing, that's automatically done by Raspbian now
This commit is contained in:
parent
01d14f81eb
commit
80391207b4
1 changed files with 0 additions and 28 deletions
|
@ -99,7 +99,6 @@ function main()
|
|||
|
||||
if is_raspbian ; then
|
||||
step del_user_pi || die "Unable to delete user pi"
|
||||
step setup_firstboot || die "Unable to setup firstboot"
|
||||
fi
|
||||
|
||||
if [[ "$BUILD_IMAGE" == "1" ]] ; then
|
||||
|
@ -471,33 +470,6 @@ function del_user_pi() {
|
|||
fi
|
||||
}
|
||||
|
||||
function setup_firstboot() {
|
||||
|
||||
cat > /etc/init.d/yunohost-firstboot << EOF
|
||||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: expand rootfs and Generates new ssh host keys on first boot
|
||||
# Required-Start: \$remote_fs \$syslog
|
||||
# Required-Stop: \$remote_fs \$syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop:
|
||||
# Short-Description: Generates new ssh host keys on first boot
|
||||
# Description: Generates apt-get --purge clean new ssh host keys on $
|
||||
### END INIT INFO
|
||||
echo "Expanding rootfs ..."
|
||||
raspi-config --expand-rootfs
|
||||
echo "Removing myself ..."
|
||||
insserv -r /etc/init.d/yunohost-firstboot
|
||||
rm -f /etc/init.d/yunohost-firstboot
|
||||
rm /etc/yunohost/firstboot
|
||||
echo "Rebooting ..."
|
||||
reboot
|
||||
EOF
|
||||
chmod a+x /etc/init.d/yunohost-firstboot
|
||||
insserv /etc/init.d/yunohost-firstboot
|
||||
touch /etc/yunohost/firstboot
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
# Image building specific stuff #
|
||||
###############################################################################
|
||||
|
|
Loading…
Add table
Reference in a new issue