|
@@ -206,11 +206,10 @@ echo $DEB_HOSTNAME > $TARGET_DIR/etc/hostname
|
|
|
sed -i "1i127.0.1.1\t${DEB_HOSTNAME}" $TARGET_DIR/etc/hosts
|
|
|
|
|
|
# Add firstrun and secondrun init script
|
|
|
-install -m 755 -o root -g root ${REP}/script/secondrun $TARGET_DIR/usr/local/bin/
|
|
|
-install -m 755 -o root -g root ${REP}/script/firstrun $TARGET_DIR/usr/local/bin/
|
|
|
install -m 755 -o root -g root ${REP}/script/firstrun $TARGET_DIR/usr/local/bin/
|
|
|
-install -m 544 -o root -g root ${REP}/script/firstrun.service $TARGET_DIR/etc/systemd/system/
|
|
|
-install -m 544 -o root -g root ${REP}/script/secondrun.service $TARGET_DIR/etc/systemd/system/
|
|
|
+install -m 755 -o root -g root ${REP}/script/secondrun $TARGET_DIR/usr/local/bin/
|
|
|
+install -m 444 -o root -g root ${REP}/script/firstrun.service $TARGET_DIR/etc/systemd/system/
|
|
|
+install -m 444 -o root -g root ${REP}/script/secondrun.service $TARGET_DIR/etc/systemd/system/
|
|
|
chroot_deb $TARGET_DIR "/bin/systemctl daemon-reload >> /dev/null"
|
|
|
chroot_deb $TARGET_DIR "/bin/systemctl enable firstrun >> /dev/null"
|
|
|
|