The role of boundary conditions in the instability of one-dimensional systems