FooDeas / raspberrypi-ua-netinst

RaspberryPi (minimal) unattended netinstaller
ISC License
217 stars 46 forks source link

Building in the future & TIMEOUT created #86

Closed Mausy5043 closed 7 years ago

Mausy5043 commented 7 years ago

After the building of the devel branch this evening; looking at the tree listing (see below) two odd things caught my eye. First is the fact that some files were created in "The Future" and the second is presence of the file TIMEOUT that's in the root.

Note: This is after the build phase (clean, update, build) and the usbboot parameter is not set (as far as I know).

WTF?

NB: This is how I build:

./raspberrypi-ua-netinst/build_dir/bootfs
├── [-rw-r--r--       15660 May 15 21:09]  bcm2708-rpi-0-w.dtb
├── [-rw-r--r--       15197 May 15 21:09]  bcm2708-rpi-b.dtb
├── [-rw-r--r--       15456 May 15 21:09]  bcm2708-rpi-b-plus.dtb
├── [-rw-r--r--       14916 May 15 21:09]  bcm2708-rpi-cm.dtb
├── [-rw-r--r--       16523 May 15 21:09]  bcm2709-rpi-2-b.dtb
├── [-rw-r--r--       17624 May 15 21:09]  bcm2710-rpi-3-b.dtb
├── [-rw-r--r--       16380 May 15 21:09]  bcm2710-rpi-cm3.dtb
├── [-rw-r--r--       50248 Jul  3 12:07]  bootcode.bin
├── [-rw-r--r--         100  The Future ]  cmdline.txt
├── [-rw-r--r--          94  The Future ]  config.txt
├── [-rw-r--r--       18693 Aug 21  2015]  COPYING.linux
├── [-rw-r--r--        2583 Jul  3 16:07]  fixup_cd.dat
├── [-rw-r--r--        6674 Jul  3 16:07]  fixup.dat
├── [-rw-r--r--        9813 Jul  3 16:07]  fixup_db.dat
├── [-rw-r--r--        9813 Jul  3 16:07]  fixup_x.dat
├── [-rw-r--r--     4579248 Jul  3 12:07]  kernel7.img
├── [-rw-r--r--     4379032 Jul  3 12:07]  kernel.img
├── [-rw-r--r--        1494 Nov 18  2015]  LICENCE.broadcom
├── [drwxr-sr-x        4096 Jul  3 12:07]  overlays
│   ├── [-rw-r--r--        1027 Apr 28  9:18]  adau1977-adc.dtbo
│   ├── [-rw-r--r--        1587 Apr 28  9:18]  adau7002-simple.dtbo
│   ├── [-rw-r--r--        2425 Jun 22  2016]  ads1015.dtbo
│   ├── [-rw-r--r--        2425 Apr 28  9:18]  ads1115.dtbo
│   ├── [-rw-r--r--        2426 May  4  2016]  ads7846.dtbo
│   ├── [-rw-r--r--        1387 Apr 28  9:18]  akkordion-iqdacplus.dtbo
│   ├── [-rw-r--r--        1473 Apr 28  9:18]  allo-boss-dac-pcm512x-audio.dtbo
│   ├── [-rw-r--r--        1208 Jul  3 12:07]  allo-digione.dtbo
│   ├── [-rw-r--r--        1011 Oct 24  2016]  allo-piano-dac-pcm512x-audio.dtbo
│   ├── [-rw-r--r--        1585 Apr 28  9:18]  allo-piano-dac-plus-pcm512x-audio.dtbo
│   ├── [-rw-r--r--        1668 May  4  2016]  at86rf233.dtbo
│   ├── [-rw-r--r--        1972 Apr 28  9:18]  audioinjector-addons.dtbo
│   ├── [-rw-r--r--         787 May 27  2016]  audioinjector-wm8731-audio.dtbo
│   ├── [-rw-r--r--         575 Sep 22  2016]  audremap.dtbo
│   ├── [-rw-r--r--         449 May  4  2016]  bmp085_i2c-sensor.dtbo
│   ├── [-rw-r--r--         983 May  4  2016]  dht11.dtbo
│   ├── [-rw-r--r--         663 Sep 22  2016]  dionaudio-loco.dtbo
│   ├── [-rw-r--r--        1027 Apr 28  9:18]  dionaudio-loco-v2.dtbo
│   ├── [-rw-r--r--         765 Sep 22  2016]  dpi18.dtbo
│   ├── [-rw-r--r--         789 May  4  2016]  dpi24.dtbo
│   ├── [-rw-r--r--         852 Apr 28  9:18]  dwc2.dtbo
│   ├── [-rw-r--r--         423 May  4  2016]  dwc-otg.dtbo
│   ├── [-rw-r--r--        1403 May  4  2016]  enc28j60.dtbo
│   ├── [-rw-r--r--        1279 Dec 19  2016]  enc28j60-spi2.dtbo
│   ├── [-rw-r--r--        1932 Apr 28  9:18]  fe-pi-audio.dtbo
│   ├── [-rw-r--r--        1437 Jul  3 12:07]  goodix.dtbo
│   ├── [-rw-r--r--        1259 Apr 28  9:18]  googlevoicehat-soundcard.dtbo
│   ├── [-rw-r--r--        1036 Jun 22  2016]  gpio-ir.dtbo
│   ├── [-rw-r--r--         901 May  4  2016]  gpio-poweroff.dtbo
│   ├── [-rw-r--r--         779 May  4  2016]  hifiberry-amp.dtbo
│   ├── [-rw-r--r--         655 May  4  2016]  hifiberry-dac.dtbo
│   ├── [-rw-r--r--        1693 Apr 28  9:18]  hifiberry-dacplus.dtbo
│   ├── [-rw-r--r--         959 Apr 28  9:18]  hifiberry-digi.dtbo
│   ├── [-rw-r--r--        1125 Apr 28  9:18]  hifiberry-digi-pro.dtbo
│   ├── [-rw-r--r--        2468 May  4  2016]  hy28a.dtbo
│   ├── [-rw-r--r--        2939 May  4  2016]  hy28b.dtbo
│   ├── [-rw-r--r--        1182 May  6  2016]  i2c0-bcm2708.dtbo
│   ├── [-rw-r--r--         854 May  4  2016]  i2c1-bcm2708.dtbo
│   ├── [-rw-r--r--         270 Apr 28  9:18]  i2c-bcm2708.dtbo
│   ├── [-rw-r--r--         991 Jun 22  2016]  i2c-gpio.dtbo
│   ├── [-rw-r--r--        2185 May 27  2016]  i2c-mux.dtbo
│   ├── [-rw-r--r--         644 May  4  2016]  i2c-pwm-pca9685a.dtbo
│   ├── [-rw-r--r--        3442 Jul  3 12:07]  i2c-rtc.dtbo
│   ├── [-rw-r--r--        4143 Jul  3 12:07]  i2c-rtc-gpio.dtbo
│   ├── [-rw-r--r--        2864 Jul  3 12:07]  i2c-sensor.dtbo
│   ├── [-rw-r--r--         343 May  4  2016]  i2s-gpio28-31.dtbo
│   ├── [-rw-r--r--        1272 Apr 28  9:18]  iqaudio-dac.dtbo
│   ├── [-rw-r--r--        1511 Apr 28  9:18]  iqaudio-dacplus.dtbo
│   ├── [-rw-r--r--        1326 Apr 28  9:18]  iqaudio-digi-wm8804-audio.dtbo
│   ├── [-rw-r--r--        1276 Apr 28  9:18]  justboom-dac.dtbo
│   ├── [-rw-r--r--         955 Apr 28  9:18]  justboom-digi.dtbo
│   ├── [-rw-r--r--        1348 May  4  2016]  lirc-rpi.dtbo
│   ├── [-rw-r--r--        1329 Jun 22  2016]  mcp23017.dtbo
│   ├── [-rw-r--r--       15229 Sep 22  2016]  mcp23s17.dtbo
│   ├── [-rw-r--r--        1833 May  4  2016]  mcp2515-can0.dtbo
│   ├── [-rw-r--r--        1833 May  4  2016]  mcp2515-can1.dtbo
│   ├── [-rw-r--r--        4237 Feb 15 18:45]  mcp3008.dtbo
│   ├── [-rw-r--r--         720 Apr 28  9:18]  midi-uart0.dtbo
│   ├── [-rw-r--r--         857 Jul  3 12:07]  midi-uart1.dtbo
│   ├── [-rw-r--r--        1099 May 15 21:09]  mmc.dtbo
│   ├── [-rw-r--r--         796 Jul  3 12:07]  mpu6050.dtbo
│   ├── [-rw-r--r--        2850 May  4  2016]  mz61581.dtbo
│   ├── [-rw-r--r--         569 May  4  2016]  pi3-act-led.dtbo
│   ├── [-rw-r--r--         818 Apr 28  9:18]  pi3-disable-bt.dtbo
│   ├── [-rw-r--r--         265 Feb 15 18:45]  pi3-disable-wifi.dtbo
│   ├── [-rw-r--r--        1105 Apr 28  9:18]  pi3-miniuart-bt.dtbo
│   ├── [-rw-r--r--        2617 May  4  2016]  piscreen2r.dtbo
│   ├── [-rw-r--r--        2713 May  4  2016]  piscreen.dtbo
│   ├── [-rw-r--r--        2454 Dec 19  2016]  pisound.dtbo
│   ├── [-rw-r--r--        1544 May  4  2016]  pitft22.dtbo
│   ├── [-rw-r--r--        2385 May  4  2016]  pitft28-capacitive.dtbo
│   ├── [-rw-r--r--        2802 May  4  2016]  pitft28-resistive.dtbo
│   ├── [-rw-r--r--        2802 Oct 24  2016]  pitft35-resistive.dtbo
│   ├── [-rw-r--r--        1043 Sep 22  2016]  pps-gpio.dtbo
│   ├── [-rw-r--r--        1057 Apr 28  9:18]  pwm-2chan.dtbo
│   ├── [-rw-r--r--         946 Apr 28  9:18]  pwm.dtbo
│   ├── [-rw-r--r--        1315 May  4  2016]  qca7000.dtbo
│   ├── [-rw-r--r--        1301 Apr 28  9:18]  raspidac3.dtbo
│   ├── [-rw-r--r--       64913 Jul  3 12:07]  README
│   ├── [-rw-r--r--        1275 Jul  3 12:07]  rotary-encoder.dtbo
│   ├── [-rw-r--r--         489 May  4  2016]  rpi-backlight.dtbo
│   ├── [-rw-r--r--        3406 Apr 28  9:18]  rpi-cirrus-wm5102.dtbo
│   ├── [-rw-r--r--         643 Jun 22  2016]  rpi-dac.dtbo
│   ├── [-rw-r--r--        2524 May  4  2016]  rpi-display.dtbo
│   ├── [-rw-r--r--         462 May  4  2016]  rpi-ft5406.dtbo
│   ├── [-rw-r--r--         771 May  4  2016]  rpi-proto.dtbo
│   ├── [-rw-r--r--         893 May  4  2016]  rpi-sense.dtbo
│   ├── [-rw-r--r--         499 Apr 28  9:18]  rpi-tv.dtbo
│   ├── [-rw-r--r--        1298 Apr 28  9:18]  rra-digidac1-wm8741-audio.dtbo
│   ├── [-rw-r--r--        1174 Sep 22  2016]  sc16is750-i2c.dtbo
│   ├── [-rw-r--r--        1875 Sep 22  2016]  sc16is752-spi1.dtbo
│   ├── [-rw-r--r--         846 May 15 21:09]  sdhost.dtbo
│   ├── [-rw-r--r--        1078 May 15 21:09]  sdio-1bit.dtbo
│   ├── [-rw-r--r--        1116 May 15 21:09]  sdio.dtbo
│   ├── [-rw-r--r--         699 May  4  2016]  sdtweak.dtbo
│   ├── [-rw-r--r--         376 May  4  2016]  smi-dev.dtbo
│   ├── [-rw-r--r--         981 May  4  2016]  smi.dtbo
│   ├── [-rw-r--r--        1508 May  4  2016]  smi-nand.dtbo
│   ├── [-rw-r--r--         919 Feb 15 18:45]  spi0-cs.dtbo
│   ├── [-rw-r--r--         492 Sep 22  2016]  spi0-hw-cs.dtbo
│   ├── [-rw-r--r--        1547 May  4  2016]  spi1-1cs.dtbo
│   ├── [-rw-r--r--        1920 May  4  2016]  spi1-2cs.dtbo
│   ├── [-rw-r--r--        2293 May  4  2016]  spi1-3cs.dtbo
│   ├── [-rw-r--r--        1547 May  4  2016]  spi2-1cs.dtbo
│   ├── [-rw-r--r--        1920 May  4  2016]  spi2-2cs.dtbo
│   ├── [-rw-r--r--        2293 May  4  2016]  spi2-3cs.dtbo
│   ├── [-rw-r--r--         666 Oct 24  2016]  spi-gpio35-39.dtbo
│   ├── [-rw-r--r--         635 Sep 22  2016]  spi-rtc.dtbo
│   ├── [-rw-r--r--        4878 May 27  2016]  tinylcd35.dtbo
│   ├── [-rw-r--r--         980 May  4  2016]  uart1.dtbo
│   ├── [-rw-r--r--        1412 Jul  3 12:07]  vc4-fkms-v3d.dtbo
│   ├── [-rw-r--r--        3108 Jul  3 12:07]  vc4-kms-v3d.dtbo
│   ├── [-rw-r--r--         758 May  4  2016]  vga666.dtbo
│   ├── [-rw-r--r--        1116 Apr 28  9:18]  w1-gpio.dtbo
│   ├── [-rw-r--r--        1251 Apr 28  9:18]  w1-gpio-pullup.dtbo
│   └── [-rw-r--r--        1080 May  4  2016]  wittypi.dtbo
├── [drwxr-sr-x        4096  The Future ]  raspberrypi-ua-netinst
│   ├── [drwxr-sr-x        4096  The Future ]  config
│   │   ├── [drwxr-sr-x        4096  The Future ]  apt
│   │   │   ├── [-rw-r--r--         339  The Future ]  custom_configuration.txt
│   │   │   └── [-rw-r--r--         962  The Future ]  custom_sources.txt
│   │   ├── [drwxr-sr-x        4096  The Future ]  boot
│   │   │   └── [-rw-r--r--         158  The Future ]  custom_config.txt
│   │   ├── [drwxr-sr-x        4096  The Future ]  files
│   │   │   ├── [-rw-r--r--         689  The Future ]  custom_files.txt
│   │   │   ├── [-rw-r--r--         842 Jul 25 21:30]  etc.list
│   │   │   ├── [-rw-r--r--         823 Jul 25 21:30]  home.list
│   │   │   └── [drwxr-sr-x        4096 Jul 25 21:30]  root
│   │   │       ├── [drwxr-sr-x        4096 Jul 25 21:30]  etc
│   │   │       │   ├── [drwxr-sr-x        4096 Jul 25 21:30]  cron.d
│   │   │       │   │   └── [-rw-r--r--         285 Jul 25 21:30]  raspboot
│   │   │       │   ├── [drwxr-sr-x        4096 Jul 25 21:30]  init.d
│   │   │       │   │   └── [-rw-r--r--         687 Jul 25 21:30]  switch_cpu_governor
│   │   │       │   ├── [drwxr-sr-x        4096 Jul 25 21:30]  logrotate.d
│   │   │       │   │   └── [-rw-r--r--         320 Jul 25 21:30]  raspmod
│   │   │       │   └── [drwxr-sr-x        4096 Jul 25 21:30]  rsyslog.d
│   │   │       │       └── [-rw-r--r--         433 Jul 25 21:30]  raspmod.conf
│   │   │       └── [drwxr-sr-x        4096 Jul 25 21:30]  home
│   │   │           └── [drwxr-sr-x        4096 Jul 25 21:30]  pi
│   │   │               ├── [-rw-r--r--        3508 Jul 25 21:30]  .bashrc
│   │   │               ├── [-rw-r--r--        4400 Jul 25 21:30]  .dircolors
│   │   │               ├── [-rw-r--r--         170 Jul 25 21:30]  .lftprc
│   │   │               ├── [-rw-r--r--         735 Jul 25 21:30]  .profile
│   │   │               └── [-rw-r--r--         177 Jul 25 21:30]  .screenrc
│   │   ├── [-rw-r--r--        2138  The Future ]  installer-config.txt
│   │   ├── [-rw-r--r--          21  The Future ]  installer-retries.txt
│   │   └── [-rw-r--r--        3327  The Future ]  post-install.txt
│   └── [-rw-r--r--    16103257  The Future ]  raspberrypi-ua-netinst.cpio.gz
├── [-rw-r--r--      659492 Jul  3 16:07]  start_cd.elf
├── [-rw-r--r--     4993604 Jul  3 16:07]  start_db.elf
├── [-rw-r--r--     2855556 Jul  3 16:07]  start.elf
├── [-rw-r--r--     3939492 Jul  3 16:07]  start_x.elf
└── [-rw-r--r--           0  The Future ]  TIMEOUT

14 directories, 158 files
FooDeas commented 7 years ago

Interesting! Only the timestamps of these files, which are created while building are affected. Maybe building on a VM?

The empty "TIMEOUT" file belongs to the MSD boot feature. It tells the bootloader to increase the enumeration timeout limit from two to five seconds without the need to permanently change the OTP bit.

(I can't read your js script here in a trice.)

Mausy5043 commented 7 years ago

Built on a Raspberry Pi B+

I've updated the link. It's a shell script, I pasted in the wrong link. Here is the correct one

I've added an extra ls -al --full-time and built it again. The files are being/ seem to have been/ will be created about 6 seconds in the future 😲 . Great Scott!

I gathered from the source that the TIMEOUT file was only created during install. Not during the build.

FooDeas commented 7 years ago

You are using a remote FS. Eigher the time on that system is in future compared to the local ~or it uses another time zone~. Check it by creating any new file in your mount folder, using the stat command and compare it to the output of date. If you do this in one command chain, you can reproduce and verify your issue.

(The timeout file is created while building in line 681.)

Mausy5043 commented 7 years ago

@FooDeas You're right. The remote system's time wasn't getting update by ntp

Thanks!